[Lldb-commits] [lldb] 71be4db - [lldb] Check for the mangled symbol name for objc_copyRealizedClassList_nolock

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 29 10:58:41 PDT 2021


Author: Jonas Devlieghere
Date: 2021-06-29T10:58:35-07:00
New Revision: 71be4db05bbdcc8a9bbe01f54cf273b530327ec7

URL: https://github.com/llvm/llvm-project/commit/71be4db05bbdcc8a9bbe01f54cf273b530327ec7
DIFF: https://github.com/llvm/llvm-project/commit/71be4db05bbdcc8a9bbe01f54cf273b530327ec7.diff

LOG: [lldb] Check for the mangled symbol name for objc_copyRealizedClassList_nolock

When we check whether the Objective-C SPI is available, we need to check
for the mangled symbol name. Unlike `objc_copyRealizedClassList`, which
is C exported, the `nolock` variant is not.

Differential revision: https://reviews.llvm.org/D105136

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
index a3a0827cfe65a..2ea7640ed737b 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
@@ -668,7 +668,7 @@ AppleObjCRuntimeV2::AppleObjCRuntimeV2(Process *process,
   static const ConstString g_gdb_object_getClass("gdb_object_getClass");
   m_has_object_getClass = HasSymbol(g_gdb_object_getClass);
   static const ConstString g_objc_copyRealizedClassList(
-      "objc_copyRealizedClassList_nolock");
+      "_ZL33objc_copyRealizedClassList_nolockPj");
   m_has_objc_copyRealizedClassList = HasSymbol(g_objc_copyRealizedClassList);
 
   RegisterObjCExceptionRecognizer(process);


        


More information about the lldb-commits mailing list