Fix the objective C object validator that I broke. When we have ObjC runtime

V2 and we only have gdb_class_getClass, then make sure the isa isn't NULL 
before trying to call gdb_class_getClass otherwise we end up deadlocking the
objective C runtime.

llvm-svn: 123615
This commit is contained in:
Greg Clayton 2011-01-17 04:34:26 +00:00
parent 47a15b7c0b
commit 7d87b92d2e
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ AppleObjCRuntimeV2::CreateObjectChecker(const char *name)
" if ($__lldb_arg_obj == (void *)0) \n"
" return; // nil is ok \n"
" void **$isa_ptr = (void **)$__lldb_arg_obj; \n"
" if (!gdb_class_getClass(*$isa_ptr)) \n"
" if (*$isa_ptr == NULL || !gdb_class_getClass(*$isa_ptr)) \n"
" *((volatile int *)0) = 'ocgc'; \n"
"} \n",
name);