[Lldb-commits] [lldb] r140918 - /lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Greg Clayton
gclayton at apple.com
Fri Sep 30 18:37:21 PDT 2011
Author: gclayton
Date: Fri Sep 30 20:37:20 2011
New Revision: 140918
URL: http://llvm.org/viewvc/llvm-project?rev=140918&view=rev
Log:
Print object names in case we have a .o file in a static archive when logging
DWARF errors and warnings.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=140918&r1=140917&r2=140918&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Fri Sep 30 20:37:20 2011
@@ -2347,6 +2347,9 @@
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 @@
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);
More information about the lldb-commits
mailing list