[Lldb-commits] [lldb] [lldb] Add a MemoryRegionInfo cache at a process stop (PR #202509)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 9 17:49:04 PDT 2026


================
@@ -787,6 +787,22 @@ JSON and uses JSON arrays where applicable. The JSON output looks like:
           {"address":140734799804592,"bytes":"c8f8bf5fff7f0000c9a59e8cff7f0000"},
           {"address":140734799804616,"bytes":"00000000000000000100000000000000"}
         ]
+        [
----------------
jasonmolenda wrote:

yeah, I originally only had a single memory region info returned, which is all I need today.  But I could envision a use case where a stub might want to expedite the memory region info for both stack and the pc currently executing -- so I changed it to an array and edited the example by hand lol.  

It's a bummer that jThreadsInfo is an array of thread-specific information, because we have some things in the "thread" dictionary that are not thread specific like `memory` and `memory-region-infos`, that could more usefully be separate arrays after all the per-thread dictionaries.

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


More information about the lldb-commits mailing list