diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-05-22 21:25:06 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-05-22 21:25:06 +0000 |
commit | 04df32daa12408b2f971c82625ba877168f7c1c7 (patch) | |
tree | 81c9895d6dc19ca89399ca2696db9c3cb4316931 | |
parent | 443d96c703164ee66ce532c6da9d9f205d8b6fdd (diff) | |
download | llvm-04df32daa12408b2f971c82625ba877168f7c1c7.zip llvm-04df32daa12408b2f971c82625ba877168f7c1c7.tar.gz llvm-04df32daa12408b2f971c82625ba877168f7c1c7.tar.bz2 |
Merging r182441:
------------------------------------------------------------------------
r182441 | gclayton | 2013-05-21 17:10:28 -0700 (Tue, 21 May 2013) | 5 lines
<rdar://problem/13455021>
Another fix to make sure that if we aren't able to extract an object file for any reason, we don't crash when trying to parse the debug map info.
------------------------------------------------------------------------
llvm-svn: 182522
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp index 3afe396..61f95f3 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp @@ -54,6 +54,8 @@ SymbolFileDWARFDebugMap::CompileUnitInfo::GetFileRangeMap(SymbolFileDWARFDebugMa return file_range_map; ObjectFile *oso_objfile = oso_module->GetObjectFile(); + if (!oso_objfile) + return file_range_map; Log *log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_MAP)); if (log) |