[Lldb-commits] [lldb] [LLDB][Minidump]Update MinidumpFileBuilder to read and write in chunks (PR #129307)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 7 10:57:44 PDT 2025
================
@@ -969,6 +969,64 @@ Status MinidumpFileBuilder::DumpDirectories() const {
return error;
}
+Status MinidumpFileBuilder::ReadWriteMemoryInChunks(
+ lldb_private::DataBufferHeap &data_buffer,
+ const lldb_private::CoreFileMemoryRange &range, uint64_t &bytes_read) {
+
+ Log *log = GetLog(LLDBLog::Object);
+ Status addDataError;
+ Process::ReadMemoryChunkCallback callback =
+ [&](Status &error, DataBufferHeap &data, lldb::addr_t current_addr,
+ uint64_t bytes_to_read,
+ uint64_t bytes_read_for_chunk) -> lldb_private::IterationAction {
----------------
clayborg wrote:
Update to suggested callback prototype above.
https://github.com/llvm/llvm-project/pull/129307
More information about the lldb-commits
mailing list