[Lldb-commits] [lldb] r182441 - <rdar://problem/13455021>
Greg Clayton
gclayton at apple.com
Tue May 21 17:10:28 PDT 2013
Author: gclayton
Date: Tue May 21 19:10:28 2013
New Revision: 182441
URL: http://llvm.org/viewvc/llvm-project?rev=182441&view=rev
Log:
<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.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp?rev=182441&r1=182440&r2=182441&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp Tue May 21 19:10:28 2013
@@ -54,6 +54,8 @@ SymbolFileDWARFDebugMap::CompileUnitInfo
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)
More information about the lldb-commits
mailing list