[Lldb-commits] [lldb] f0d87df - [lldb] Return the correct utility function in AppleObjCRuntimeV2
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 22 13:57:30 PDT 2022
Author: Jonas Devlieghere
Date: 2022-06-22T13:57:23-07:00
New Revision: f0d87dfe30e86d701034af9320b29d3e2e3a12b3
URL: https://github.com/llvm/llvm-project/commit/f0d87dfe30e86d701034af9320b29d3e2e3a12b3
DIFF: https://github.com/llvm/llvm-project/commit/f0d87dfe30e86d701034af9320b29d3e2e3a12b3.diff
LOG: [lldb] Return the correct utility function in AppleObjCRuntimeV2
A copy/paste error in GetClassInfoUtilityFunction resulted in the wrong
utility function being returned: copyRealizedClassList instead of
getRealizedClassList_trylock.
Differential revision: https://reviews.llvm.org/D128378
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 4d21f1f3765f3..1b576f6870cc7 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
@@ -1700,11 +1700,11 @@ AppleObjCRuntimeV2::DynamicClassInfoExtractor::GetClassInfoUtilityFunction(
}
case objc_getRealizedClassList_trylock: {
if (!m_objc_getRealizedClassList_trylock_helper.utility_function)
- m_objc_copyRealizedClassList_helper.utility_function =
+ m_objc_getRealizedClassList_trylock_helper.utility_function =
GetClassInfoUtilityFunctionImpl(exe_ctx, helper,
g_get_dynamic_class_info3_body,
g_get_dynamic_class_info3_name);
- return m_objc_copyRealizedClassList_helper.utility_function.get();
+ return m_objc_getRealizedClassList_trylock_helper.utility_function.get();
}
}
llvm_unreachable("Unexpected helper");
More information about the lldb-commits
mailing list