[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 5 13:35:34 PST 2025
================
@@ -96,6 +96,17 @@ class SectionList {
/// information.
uint64_t GetDebugInfoSize() const;
+ // Callback to decide which of two matching sections should be used in the
+ // merged output.
+ using MergeCallback =
+ std::function<lldb::SectionSP(lldb::SectionSP, lldb::SectionSP)>;
+
+ // Function that merges two different sections into a new output list. All
+ // unique sections will be checked for conflict and resolved using the
+ // supplied merging callback.
+ static std::shared_ptr<SectionList> Merge(SectionList &lhs, SectionList &rhs,
----------------
clayborg wrote:
return a `SectionList`
https://github.com/llvm/llvm-project/pull/166635
More information about the lldb-commits
mailing list