[Lldb-commits] [lldb] [LLDB] Fix Memory64 BaseRVA, move all non-stack memory to Mem64. (PR #146777)
David Peixotto via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 16 12:16:12 PDT 2025
================
@@ -1130,9 +1122,9 @@ MinidumpFileBuilder::AddMemoryList_64(std::vector<CoreFileMemoryRange> &ranges,
// Capture the starting offset for all the descriptors so we can clean them up
// if needed.
offset_t starting_offset =
- GetCurrentDataEndOffset() + sizeof(llvm::support::ulittle64_t);
+ GetCurrentDataEndOffset() + sizeof(llvm::minidump::Memory64ListHeader);
----------------
dmpots wrote:
So this is the actual bug fix right? I wonder if it would be better to put this as a separate commit. It maybe is hard to test without the other changes, but it would at least clearly separate the bug fix from the change in behavior.
Makes it safer in case we need to revert the change to 64b by default that we would not also revert the bug fix.
https://github.com/llvm/llvm-project/pull/146777
More information about the lldb-commits
mailing list