Reapply minidump changes reverted in r356806
authorPavel Labath <pavel@labath.sk>
Mon, 25 Mar 2019 14:02:16 +0000 (14:02 +0000)
committerPavel Labath <pavel@labath.sk>
Mon, 25 Mar 2019 14:02:16 +0000 (14:02 +0000)
commit2ef15d82e9086b97a18d7acbcbca31a81450105c
treecf5661ca9d6225c337885b349bfade9befa75242
parentbc92c8c8636b78507123faa6e9ef71b3f8f48d08
Reapply minidump changes reverted in r356806

The changes were reverted due to ubsan errors (unaligned accesses). Here
I fix those errors by first copying the data into aligned storage.
Besides fixing alignment issues, this also fixes reading of minidump
strings on big-endian systems.

llvm-svn: 356896
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpUUID.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/linux-arm-uuids-elf-build-id-16.dmp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/linux-arm-uuids-elf-build-id-20.dmp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/linux-arm-uuids-elf-build-id-zero.dmp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/linux-arm-uuids-no-age.dmp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/linux-arm-uuids-with-age.dmp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/linux-arm-zero-uuids.dmp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/macos-arm-uuids-no-age.dmp [new file with mode: 0644]
lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
lldb/source/Plugins/Process/minidump/MinidumpTypes.cpp