summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-03-06 23:23:27 +0000
committerGreg Clayton <gclayton@apple.com>2013-03-06 23:23:27 +0000
commit084fad6a51338e5a141c7f7b3b58d5050692c992 (patch)
treec7cea278c355ea834ea2e26c3aca3005a2e1a580 /lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
parent4e7511efc705ed3cacae3f66dffe5ceacf539469 (diff)
downloadbcm5719-llvm-084fad6a51338e5a141c7f7b3b58d5050692c992.tar.gz
bcm5719-llvm-084fad6a51338e5a141c7f7b3b58d5050692c992.zip
<rdar://problem/13362109>
LLDB was not parsing line tables correctly for DWARF in .o files after recent debug map changes. This has now been fixed. llvm-svn: 176592
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp24
1 files changed, 4 insertions, 20 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
index 26b2d77a445..20306851552 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
@@ -74,13 +74,6 @@ SymbolFileDWARFDebugMap::CompileUnitInfo::GetFileRangeMap(SymbolFileDWARFDebugMa
Symtab *exe_symtab = exe_symfile->GetObjectFile()->GetSymtab();
ModuleSP oso_module_sp (oso_objfile->GetModule());
Symtab *oso_symtab = oso_objfile->GetSymtab();
-#if defined(DEBUG_OSO_DMAP)
- StreamFile s(stdout, false);
- s << "OSO symtab:\n";
- oso_symtab->Dump(&s, NULL, eSortOrderNone);
- s << "OSO sections before:\n";
- oso_objfile->GetSectionList()->Dump(&s, NULL, true, UINT32_MAX);
-#endif
///const uint32_t fun_resolve_flags = SymbolContext::Module | eSymbolContextCompUnit | eSymbolContextFunction;
//SectionList *oso_sections = oso_objfile->Sections();
@@ -171,10 +164,6 @@ SymbolFileDWARFDebugMap::CompileUnitInfo::GetFileRangeMap(SymbolFileDWARFDebugMa
}
exe_symfile->FinalizeOSOFileRanges (this);
-#if defined(DEBUG_OSO_DMAP)
- s << "OSO sections after:\n";
- oso_objfile->GetSectionList()->Dump(&s, NULL, true, UINT32_MAX);
-#endif
// We don't need the symbols anymore for the .o files
oso_objfile->ClearSymtab();
}
@@ -378,15 +367,7 @@ SymbolFileDWARFDebugMap::InitOSO()
}
m_debug_map.Sort();
-#if defined(DEBUG_OSO_DMAP)
- StreamFile s(stdout, false);
- symtab->Dump(&s, NULL, m_func_indexes);
- symtab->Dump(&s, NULL, m_glob_indexes);
-#endif
m_compile_unit_infos.resize(oso_index_count);
-
-// s.Printf("%s N_OSO symbols:\n", __PRETTY_FUNCTION__);
-// symtab->Dump(&s, oso_indexes);
for (uint32_t i=0; i<oso_index_count; ++i)
{
@@ -1430,7 +1411,10 @@ SymbolFileDWARFDebugMap::FinalizeOSOFileRanges (CompileUnitInfo *cu_info)
#if defined(DEBUG_OSO_DMAP)
const FileRangeMap &oso_file_range_map = cu_info->GetFileRangeMap(this);
const size_t n = oso_file_range_map.GetSize();
- printf ("SymbolFileDWARFDebugMap::FinalizeOSOFileRanges (cu_info = %p)\n", cu_info);
+ printf ("SymbolFileDWARFDebugMap::FinalizeOSOFileRanges (cu_info = %p) %s/%s\n",
+ cu_info,
+ cu_info->oso_sp->module_sp->GetFileSpec().GetDirectory().GetCString(),
+ cu_info->oso_sp->module_sp->GetFileSpec().GetFilename().GetCString());
for (size_t i=0; i<n; ++i)
{
const FileRangeMap::Entry &entry = oso_file_range_map.GetEntryRef(i);
OpenPOWER on IntegriCloud