[Lldb-commits] [lldb] [LLDB] Support Auxiliary library in ELF format (PR #208905)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 26 02:57:16 PDT 2026


================
@@ -340,14 +340,12 @@ BreakpointResolverName::SearchCallback(SearchFilter &filter,
           break_addr.Slide(prologue_byte_size);
       }
     } else if (sc.symbol) {
-      if (sc.symbol->GetType() == eSymbolTypeReExported) {
-        const Symbol *actual_symbol =
-            sc.symbol->ResolveReExportedSymbol(breakpoint.GetTarget());
-        if (actual_symbol) {
-          is_reexported = true;
-          break_addr = actual_symbol->GetAddress();
-        }
-      } else {
+      const Symbol *actual_symbol = sc.symbol->ResolveReExportedSymbol(
+          breakpoint.GetTarget(), sc.module_sp);
+      if (actual_symbol) {
+        is_reexported = true;
+        break_addr = actual_symbol->GetAddress();
+      } else if (sc.symbol->GetType() != eSymbolTypeReExported) {
----------------
DavidSpickett wrote:

Ok so some of the logic has been sunk into ResolveReExportedSymbol, basically?

For MachO it'll find the tag right away without having to do a lot of work, for ELF, we have extra work to do.

In other words: the MachO path is the same in terms of work done, right?

https://github.com/llvm/llvm-project/pull/208905


More information about the lldb-commits mailing list