[Lldb-commits] [lldb] [lldb][debugserver][NFC] Share the expedited-memory type and emitters (PR #222911)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 11 06:45:00 PDT 2026
================
@@ -2687,14 +2688,49 @@ void RNBRemote::DispatchQueueOffsets::GetThreadQueueInfo(
}
}
-struct StackMemory {
- uint8_t bytes[2 * sizeof(nub_addr_t)];
- nub_size_t length;
+// A single contiguous chunk of expedited memory.
+struct ExpeditedMemory {
+ nub_addr_t addr;
+ std::vector<uint8_t> bytes;
};
-typedef std::map<nub_addr_t, StackMemory> StackMemoryMap;
+
+// Read one range and append it as an expedited chunk. A chunk is appended
+// only when the whole range was read, so its bytes always cover its address.
----------------
felipepiovezan wrote:
> so its bytes always cover its address.
I'm not sure I understand this bit. Would the previous sentence be self-contained without this portion?
https://github.com/llvm/llvm-project/pull/222911
More information about the lldb-commits
mailing list