aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-10-01 01:37:20 +0000
committerGreg Clayton <gclayton@apple.com>2011-10-01 01:37:20 +0000
commit1913306529630b4b237370411f6ada49bfcb3347 (patch)
tree4c8e1ac18bb07bdf879b40b597341a873c2f603f /source
parentb8dfc9653ea24bcd2bd7271ba724e0b29a628146 (diff)
downloadlldb-1913306529630b4b237370411f6ada49bfcb3347.tar.gz
Print object names in case we have a .o file in a static archive when logging
DWARF errors and warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source')
-rw-r--r--source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index 7beadf88c..bebfdff30 100644
--- a/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/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);