[Lldb-commits] [PATCH] D49579: Support parsing minidump files that are created by Breakpad.
Mark Mentovai via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 20 10:52:54 PDT 2018
markmentovai added a comment.
This has got to be padding.
Breakpad’s structure definitions don’t nail down alignment as they probably should. A 32-bit system writing an MDRawMemoryList will write what’s intended, but a 64-bit one will need to insert four bytes of padding after number_of_memory_ranges to make sure that the array elements that follow are aligned.
Microsoft’s own structure definitions don’t have this problem, and neither do Crashpad’s (example <https://chromium.googlesource.com/crashpad/crashpad/+/20e5aba1aff797bae2e01b08d4099006ab068b77/compat/non_win/dbghelp.h#56>).
I think it’d be preferable to fix Breakpad to not write bogus minidumps. It’s absolutely wrong, and other code will have interoperability problems too.
Greg, if we fix Breakpad, will you still need this for old dumps, or are you OK wiping the slate clean?
More information about the lldb-commits