diff options
author | Greg Clayton <gclayton@apple.com> | 2011-10-01 01:37:20 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-10-01 01:37:20 +0000 |
commit | cfebbcfedd2d56a06be473ec2ce25a0b11ce4ff0 (patch) | |
tree | e81741487322a53e714a3da4c49ca193ed043153 /lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | |
parent | 90455f33574246621d80364deb40d60f5422d42c (diff) | |
download | bcm5719-llvm-cfebbcfedd2d56a06be473ec2ce25a0b11ce4ff0.tar.gz bcm5719-llvm-cfebbcfedd2d56a06be473ec2ce25a0b11ce4ff0.zip |
Print object names in case we have a .o file in a static archive when logging
DWARF errors and warnings.
llvm-svn: 140918
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 7beadf88c34..bebfdff30bf 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); |