diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 7beadf88c346..bebfdff30bfb 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -2347,6 +2347,9 @@ SymbolFileDWARF::ReportError (const char *format, ...) m_obj_file->GetFileSpec().GetDirectory().GetCString(), m_obj_file->GetFileSpec().GetFilename().GetCString()); + if (m_obj_file->GetModule()->GetObjectName()) + ::fprintf (stderr, "(%s) ", m_obj_file->GetModule()->GetObjectName().GetCString()); + va_list args; va_start (args, format); vfprintf (stderr, format, args); @@ -2361,6 +2364,9 @@ SymbolFileDWARF::ReportWarning (const char *format, ...) m_obj_file->GetFileSpec().GetDirectory().GetCString(), m_obj_file->GetFileSpec().GetFilename().GetCString()); + if (m_obj_file->GetModule()->GetObjectName()) + ::fprintf (stderr, "(%s) ", m_obj_file->GetModule()->GetObjectName().GetCString()); + va_list args; va_start (args, format); vfprintf (stderr, format, args);