Allow the gdb_objc_realized_classes symbol to be
authorSean Callanan <scallanan@apple.com>
Wed, 6 May 2015 18:33:19 +0000 (18:33 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 6 May 2015 18:33:19 +0000 (18:33 +0000)
any type of symbol, which is okay since we are
looking only in the Objective-C module.

<rdar://problem/20828139>

llvm-svn: 236622

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

index 802b496..52cc837 100644 (file)
@@ -965,7 +965,7 @@ AppleObjCRuntimeV2::GetISAHashTablePointer ()
 
         static ConstString g_gdb_objc_realized_classes("gdb_objc_realized_classes");
         
-        const Symbol *symbol = objc_module_sp->FindFirstSymbolWithNameAndType(g_gdb_objc_realized_classes, lldb::eSymbolTypeData);
+        const Symbol *symbol = objc_module_sp->FindFirstSymbolWithNameAndType(g_gdb_objc_realized_classes, lldb::eSymbolTypeAny);
         if (symbol)
         {
             lldb::addr_t gdb_objc_realized_classes_ptr = symbol->GetAddress().GetLoadAddress(&process->GetTarget());