summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-07-07 01:07:33 +0000
committerSean Callanan <scallanan@apple.com>2012-07-07 01:07:33 +0000
commit3b18fbd983052d53019d8f7dc26660f16651363a (patch)
tree203efaa527bcb12ae55156473f0420cc673125a1 /lldb/source
parent786de35fa08fea705693a9edee500ea288f55773 (diff)
downloadbcm5719-llvm-3b18fbd983052d53019d8f7dc26660f16651363a.tar.gz
bcm5719-llvm-3b18fbd983052d53019d8f7dc26660f16651363a.zip
Fixed a crasher that happens if we try to inspect
a NULL symbol file. <rdar://problem/11795939> llvm-svn: 159882
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
index 57a061f6127..78adaf441b5 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
@@ -280,6 +280,9 @@ SymbolFileDWARFDebugMap::GetSymbolFileByCompUnitInfo (CompileUnitInfo *comp_unit
// it will have the remapped sections that we do below.
SymbolFileDWARF *oso_symfile = (SymbolFileDWARF *)comp_unit_info->oso_symbol_vendor->GetSymbolFile();
+ if (!oso_symfile)
+ return NULL;
+
if (oso_symfile->GetNumCompileUnits() != 1)
{
oso_symfile->GetObjectFile()->GetModule()->ReportError ("DWARF for object file '%s' contains multiple translation units!",
OpenPOWER on IntegriCloud