[Lldb-commits] [lldb] r164257 - /lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Greg Clayton gclayton at apple.com
Wed Sep 19 15:23:30 PDT 2012


Author: gclayton
Date: Wed Sep 19 17:23:30 2012
New Revision: 164257

URL: http://llvm.org/viewvc/llvm-project?rev=164257&view=rev
Log:
Don't get everything when resolving the symbol context of the ObjC Class symbol, just the module + symbol.


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=164257&r1=164256&r2=164257&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp Wed Sep 19 17:23:30 2012
@@ -307,7 +307,7 @@
                 static ConstString g_objc_class_section_name ("__objc_data");
                 if (section_name == g_objc_class_section_name)
                 {
-                    isa_address.CalculateSymbolContext(&sc);
+                    isa_address.CalculateSymbolContext(&sc, eSymbolContextModule | eSymbolContextSymbol);
                     if (sc.symbol)
                     {
                         if (sc.symbol->GetType() == eSymbolTypeObjCClass)
@@ -351,7 +351,6 @@
             class_type_or_name.SetName (class_name);
             
             TypeList class_types;
-            SymbolContext sc;
             const bool exact_match = true;
             uint32_t num_matches = target.GetImages().FindTypes (sc,
                                                                  class_type_or_name.GetName(),





More information about the lldb-commits mailing list