File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
lldb/source/Plugins/SymbolFile/DWARF Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -718,6 +718,15 @@ bool SymbolFileDWARFDebugMap::ParseDebugMacros(CompileUnit &comp_unit) {
718
718
return false ;
719
719
}
720
720
721
+ static std::string GetObjectName (SymbolFileDWARF &oso_dwarf) {
722
+ if (ObjectFile *object_file = oso_dwarf.GetObjectFile ()) {
723
+ if (ModuleSP module_sp = object_file->GetModule ()) {
724
+ return module_sp->GetObjectName ().GetString ();
725
+ }
726
+ }
727
+ return " " ;
728
+ }
729
+
721
730
void SymbolFileDWARFDebugMap::ForEachSymbolFile (
722
731
std::string description,
723
732
std::function<IterationAction(SymbolFileDWARF &)> closure) {
@@ -727,12 +736,7 @@ void SymbolFileDWARFDebugMap::ForEachSymbolFile(
727
736
/* minimum_report_time=*/ std::chrono::milliseconds (20 ));
728
737
for (uint32_t oso_idx = 0 ; oso_idx < num_oso_idxs; ++oso_idx) {
729
738
if (SymbolFileDWARF *oso_dwarf = GetSymbolFileByOSOIndex (oso_idx)) {
730
- progress.Increment (oso_idx, oso_dwarf->GetObjectFile ()
731
- ? oso_dwarf->GetObjectFile ()
732
- ->GetFileSpec ()
733
- .GetFilename ()
734
- .GetString ()
735
- : " " );
739
+ progress.Increment (oso_idx, GetObjectName (*oso_dwarf));
736
740
if (closure (*oso_dwarf) == IterationAction::Stop)
737
741
return ;
738
742
}
You can’t perform that action at this time.
0 commit comments