[Lldb-commits] [lldb] 5da98de - [lldb] Read Checksum from DWARF line tables (#71458)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 9 08:59:08 PST 2023
Author: Jonas Devlieghere
Date: 2023-11-09T08:59:03-08:00
New Revision: 5da98dec7ab8c3adc3f70147ea666428431adf34
URL: https://github.com/llvm/llvm-project/commit/5da98dec7ab8c3adc3f70147ea666428431adf34
DIFF: https://github.com/llvm/llvm-project/commit/5da98dec7ab8c3adc3f70147ea666428431adf34.diff
LOG: [lldb] Read Checksum from DWARF line tables (#71458)
Read the MD5 checksum from DWARF line tables and store it in the
corresponding support files.
Added:
Modified:
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index aabd83a194932ff..79d44bce3d663b6 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -229,8 +229,15 @@ ParseSupportFilesFromPrologue(const lldb::ModuleSP &module,
remapped_file = std::move(*file_path);
}
+ Checksum checksum;
+ if (prologue.ContentTypes.HasMD5) {
+ const llvm::DWARFDebugLine::FileNameEntry &file_name_entry =
+ prologue.getFileNameEntry(idx);
+ checksum = file_name_entry.Checksum;
+ }
+
// Unconditionally add an entry, so the indices match up.
- support_files.EmplaceBack(remapped_file, style);
+ support_files.EmplaceBack(remapped_file, style, checksum);
}
return support_files;
More information about the lldb-commits
mailing list