Skip to content

Commit b6d4397

Browse files
JDevliegherezahiraam
authored andcommitted
[lldb] Read Checksum from DWARF line tables (llvm#71458)
Read the MD5 checksum from DWARF line tables and store it in the corresponding support files. This is a re-land after fixing an off-by-one error in LLDB's ParseSupportFilesFromPrologue (fixed in llvm#71984).
1 parent a3735ea commit b6d4397

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,15 @@ ParseSupportFilesFromPrologue(const lldb::ModuleSP &module,
236236
remapped_file = std::move(*file_path);
237237
}
238238

239+
Checksum checksum;
240+
if (prologue.ContentTypes.HasMD5) {
241+
const llvm::DWARFDebugLine::FileNameEntry &file_name_entry =
242+
prologue.getFileNameEntry(idx);
243+
checksum = file_name_entry.Checksum;
244+
}
245+
239246
// Unconditionally add an entry, so the indices match up.
240-
support_files.EmplaceBack(remapped_file, style);
247+
support_files.EmplaceBack(remapped_file, style, checksum);
241248
}
242249

243250
return support_files;

0 commit comments

Comments
 (0)