[Lldb-commits] [lldb] [llvm] [Obj2Yaml] Add support for minidump generation with 64b memory ranges. (PR #101272)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 30 21:38:21 PDT 2024
clayborg wrote:
Does look like this is working correctly:
```
$ minidump.py /tmp/md.dmp
MINIDUMP_HEADER:
Signature = 0x504d444d
Version = 0x0000a793
NumberOfStreams = 0x00000001
StreamDirectoryRva = 0x00000020
CheckSum = 0x00000000
TimeDateStamp = 0x00000000
Flags = 0x00000000
MINIDUMP_DIRECTORY[1]:
StreamType DataSize RVA
------------------------------------ ---------- ----------
0x00000009 Memory64ListStream 0x00000030 0x0000002c
MINIDUMP_MEMORY64_LIST:
NumberOfMemoryRanges = 0x0000000000000002
BaseRva = 0x000000000000005c
MemoryRanges[0] = [0x07fffffcf0818283 - 0x07fffffcf081828b)
MemoryRanges[1] = [0x07fffffff0818283 - 0x07fffffff081828b)
$ hexdump -C /tmp/md.dmp
00000000 4d 44 4d 50 93 a7 00 00 01 00 00 00 20 00 00 00 |MDMP........ ...|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 09 00 00 00 30 00 00 00 2c 00 00 00 02 00 00 00 |....0...,.......|
00000030 00 00 00 00 5c 00 00 00 00 00 00 00 83 82 81 f0 |....\...........|
00000040 fc ff ff 07 08 00 00 00 00 00 00 00 83 82 81 f0 |................|
00000050 ff ff ff 07 08 00 00 00 00 00 00 00 68 65 6c 6c |............hell|
00000060 6f 77 6f 72 6c 64 |oworld|
00000066
https://github.com/llvm/llvm-project/pull/101272
More information about the lldb-commits
mailing list