[Lldb-commits] [lldb] [lldb] Support disassembling discontinuous functions (PR #126505)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 10 06:22:32 PST 2025


================
@@ -262,9 +269,11 @@ CommandObjectDisassemble::GetContainingAddressRanges() {
         addr, eSymbolContextEverything, sc, resolve_tail_call_address);
     if (sc.function || sc.symbol) {
       AddressRange range;
-      sc.GetAddressRange(eSymbolContextFunction | eSymbolContextSymbol, 0,
-                         false, range);
-      ranges.push_back(range);
+      for (uint32_t idx = 0;
+           sc.GetAddressRange(eSymbolContextFunction | eSymbolContextSymbol,
+                              idx, false, range);
+           ++idx)
+        ranges.push_back(range);
     }
----------------
labath wrote:

I'm not sure what you mean. Can you elaborate?

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


More information about the lldb-commits mailing list