================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to