llvm-project/lldb/source
Greg Clayton 0e6c9a6e79 Add hashing of the .text section to ProcessMinidump.
Breakpad will always have a UUID for binaries when it creates minidump files. If an ELF files has a GNU build ID, it will use that. If it doesn't, it will create one by hashing up to the first 4096 bytes of the .text section. LLDB was not able to load these binaries even when we had the right binary because the UUID didn't match. LLDB will use the GNU build ID first as the main UUID for a binary and fallback onto a 8 byte CRC if a binary doesn't have one. With this fix, we will check for the Breakpad hash or the Facebook hash (a modified version of the breakpad hash that collides a bit less) and accept binaries when these hashes match.

Differential Revision: https://reviews.llvm.org/D86261
2020-08-24 11:43:50 -07:00
..
API [lldb] Extract reproducer providers & co into their own header. 2020-08-22 10:04:27 -07:00
Breakpoint [lldb][NFC] Use llvm::is_contained instead of std::find in a few places 2020-08-13 14:11:28 +02:00
Commands [lldb] type category name common completion 2020-08-24 19:54:23 +02:00
Core [lldb] Extract reproducer providers & co into their own header. 2020-08-22 10:04:27 -07:00
DataFormatters [lldb][NFC] Remove FormatMap 2020-07-23 18:34:59 +02:00
Expression Unify the return value of GetByteSize to an llvm::Optional<uint64_t> (NFC-ish) 2020-07-27 13:26:35 -07:00
Host [lldb] Extract reproducer providers & co into their own header. 2020-08-22 10:04:27 -07:00
Initialization [lldb] Extract reproducer providers & co into their own header. 2020-08-22 10:04:27 -07:00
Interpreter [lldb] type category name common completion 2020-08-24 19:54:23 +02:00
Plugins Add hashing of the .text section to ProcessMinidump. 2020-08-24 11:43:50 -07:00
Symbol [lldb][NFC] Remove stride parameter from GetArrayElementType 2020-08-17 10:19:51 +02:00
Target Instantiate Error in Target::GetEntryPointAddress() only when necessary 2020-08-22 12:47:13 +02:00
Utility [lldb] Remote disk file/directory completion for platform commands 2020-08-24 17:55:54 +02:00
CMakeLists.txt Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well. 2020-01-16 19:04:08 -05:00
lldb.cpp [lldb] Fix version string when using LLDB_REVISION but not LLDB_REPOSITORY 2020-02-20 10:07:50 -08:00