[Lldb-commits] [lldb] r176918 - Add a missing check for getting a NULL oso module back from GetModuleByCompUnitInfo.
Jim Ingham
jingham at apple.com
Tue Mar 12 18:34:14 PDT 2013
Author: jingham
Date: Tue Mar 12 20:34:14 2013
New Revision: 176918
URL: http://llvm.org/viewvc/llvm-project?rev=176918&view=rev
Log:
Add a missing check for getting a NULL oso module back from GetModuleByCompUnitInfo.
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=176918&r1=176917&r2=176918&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp Tue Mar 12 20:34:14 2013
@@ -50,6 +50,9 @@ SymbolFileDWARFDebugMap::CompileUnitInfo
file_range_map_valid = true;
Module *oso_module = exe_symfile->GetModuleByCompUnitInfo (this);
+ if (!oso_module)
+ return file_range_map;
+
ObjectFile *oso_objfile = oso_module->GetObjectFile();
LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_MAP));
More information about the lldb-commits
mailing list