[Lldb-commits] [lldb] [lldb] Respect max packet size limits for MultiMemRead in ProcessGDBRemote (PR #172022)

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Sun Dec 14 02:14:10 PST 2025


================
@@ -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
----------------
felipepiovezan wrote:

yup, I'll update the wording

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


More information about the lldb-commits mailing list