Skip to content

Commit 68a5872

Browse files
committed
[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 (cherry picked from commit 71be4db)
1 parent 82f13a2 commit 68a5872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ AppleObjCRuntimeV2::AppleObjCRuntimeV2(Process *process,
499499
static const ConstString g_gdb_object_getClass("gdb_object_getClass");
500500
m_has_object_getClass = HasSymbol(g_gdb_object_getClass);
501501
static const ConstString g_objc_copyRealizedClassList(
502-
"objc_copyRealizedClassList_nolock");
502+
"_ZL33objc_copyRealizedClassList_nolockPj");
503503
m_has_objc_copyRealizedClassList = HasSymbol(g_objc_copyRealizedClassList);
504504

505505
RegisterObjCExceptionRecognizer(process);

0 commit comments

Comments
 (0)