From a450a84efb2ce7d46146d9a5900e78e151d67132 Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Mon, 10 Nov 2025 14:27:10 -0800 Subject: [PATCH] [lldb] Fix reading duplicate objc class metdata from shared cache The code for v16 of the shared cache objc class layout was copy/pasted from the previous versions incorrectly. Namely, the wrong class offset list was used and the class_infos index was never updated. rdar://164430695 --- .../ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp index 9beb133f5595f..9fff4adbff79d 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -537,7 +537,7 @@ __lldb_apple_objc_v2_get_shared_cache_class_info (void *objc_opt_ro_ptr, for (uint32_t i=0; iversion >= 12 && objc_opt->version <= 15)