[Lldb-commits] [lldb] r138600 - /lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Jim Ingham
jingham at apple.com
Thu Aug 25 16:21:43 PDT 2011
Author: jingham
Date: Thu Aug 25 18:21:43 2011
New Revision: 138600
URL: http://llvm.org/viewvc/llvm-project?rev=138600&view=rev
Log:
Add logging to SymbolFileDWARF::ParseType so that we can tell the type/comp_unit/obj_file were being processed when something goes wrong...
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=138600&r1=138599&r2=138600&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Thu Aug 25 18:21:43 2011
@@ -3072,6 +3072,25 @@
AccessType accessibility = eAccessNone;
if (die != NULL)
{
+ Log *log = LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_INFO);
+ if (log && dwarf_cu)
+ {
+ const DWARFDebugInfoEntry *cu_die = dwarf_cu->GetCompileUnitDIEOnly();
+ const char *cu_name = NULL;
+ if (cu_die != NULL)
+ cu_name = cu_die->GetName (this, dwarf_cu);
+ const char *obj_file_name = NULL;
+ if (m_obj_file)
+ obj_file_name = m_obj_file->GetFileSpec().GetFilename().AsCString();
+ const char *die_name = die->GetName (this, dwarf_cu);
+ log->Printf ("SymbolFileDWARF::%s: CU: %s OBJFILE: %s DIE: %s (0x%llx).",
+ __FUNCTION__,
+ cu_name ? cu_name : "<UNKNOWN>",
+ obj_file_name ? obj_file_name : "<UNKNOWN>",
+ die_name ? die_name : "<NO NAME>",
+ die->GetOffset());
+ }
+
Type *type_ptr = m_die_to_type.lookup (die);
TypeList* type_list = GetTypeList();
if (type_ptr == NULL)
More information about the lldb-commits
mailing list