================
@@ -2790,29 +2790,62 @@ size_t ProcessGDBRemote::DoReadMemory(addr_t addr, void
*buf, size_t size,
return 0;
}
+/// Returns the number of ranges that is safe to request using MultiMemRead
+/// while respecting max_packet_size.
+static uint64_t ComputeNumRangesMultiMemRead(
+ uint64_t max_packet_size,
+ llvm::ArrayRef<Range<lldb::addr_t, size_t>> ranges) {
+ // Each range is specified by two numbers (~16 ASCII characters) and one
----------------
DavidSpickett wrote:
Worst case overhead - in other words.
https://github.com/llvm/llvm-project/pull/172022
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits