Skip to content

Commit 5673248

Browse files
committed
[lldb] Read Checksum from DWARF line tables
Read the MD5 checksum from DWARF line tables and store it in the corresponding support files.
1 parent 2186199 commit 5673248

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
@@ -229,8 +229,15 @@ ParseSupportFilesFromPrologue(const lldb::ModuleSP &module,
229229
remapped_file = std::move(*file_path);
230230
}
231231

232+
Checksum checksum;
233+
if (prologue.ContentTypes.HasMD5) {
234+
const llvm::DWARFDebugLine::FileNameEntry &file_name_entry =
235+
prologue.getFileNameEntry(idx);
236+
checksum = file_name_entry.Checksum;
237+
}
238+
232239
// Unconditionally add an entry, so the indices match up.
233-
support_files.EmplaceBack(remapped_file, style);
240+
support_files.EmplaceBack(remapped_file, style, checksum);
234241
}
235242

236243
return support_files;

0 commit comments

Comments
 (0)