[Lldb-commits] [lldb] [lldb] Unwind through ARM Cortex-M exceptions automatically (PR #153922)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 8 17:53:28 PDT 2025


================
@@ -799,6 +799,23 @@ Status ProcessMachCore::DoGetMemoryRegionInfo(addr_t load_addr,
       region_info.SetMapped(MemoryRegionInfo::eNo);
     }
     return Status();
+  } else {
+    // The corefile has no LC_SEGMENT at this virtual address,
+    // but see if there is a binary whose Section has been
+    // loaded at that address in the current Target.
----------------
jasonmolenda wrote:

This is the qMemoryRegionInfo style queries from the Unwinder where it is trying to detect "is this pc/fp in actual memory, or have I gone off the track".  In my synthesized corefile, it may only have a couple hundred bytes of stack memory and no code memory at all.  This would halt the unwind algorithms.  We have a "file" (actually an ObjectFileJSON) which will declare there to be a text section at a virtual address range, though, so when I can't find a corefile memory range for a given address, I want to fall back to looking for a Section that contains the address, and report that as a memory region.

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


More information about the lldb-commits mailing list