[Lldb-commits] [lldb] r178363 - Fixed a crash if the Objective-C runtime module

Sean Callanan scallanan at apple.com
Fri Mar 29 12:46:10 PDT 2013


Author: spyffe
Date: Fri Mar 29 14:46:09 2013
New Revision: 178363

URL: http://llvm.org/viewvc/llvm-project?rev=178363&view=rev
Log:
Fixed a crash if the Objective-C runtime module
wasn't loaded into the underlying process or
couldn't be found.

<rdar://problem/13533671>

Modified:
    lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp?rev=178363&r1=178362&r2=178363&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp Fri Mar 29 14:46:09 2013
@@ -1659,6 +1659,9 @@ AppleObjCRuntimeV2::GetISAHashTablePoint
         Process *process = GetProcess();
 
         ModuleSP objc_module_sp(GetObjCModule());
+        
+        if (!objc_module_sp)
+            return LLDB_INVALID_ADDRESS;
 
         static ConstString g_gdb_objc_realized_classes("gdb_objc_realized_classes");
         





More information about the lldb-commits mailing list