JDevlieghere created this revision. JDevlieghere added a reviewer: jingham. JDevlieghere requested review of this revision.
On macOS Big Sur the class descriptor contains the `NSKVONotifying_` prefix. This is covered by `TestDataFormatterObjCKVO`. https://reviews.llvm.org/D87545 Files: lldb/source/Plugins/Language/ObjC/NSDictionary.cpp Index: lldb/source/Plugins/Language/ObjC/NSDictionary.cpp =================================================================== --- lldb/source/Plugins/Language/ObjC/NSDictionary.cpp +++ lldb/source/Plugins/Language/ObjC/NSDictionary.cpp @@ -388,7 +388,7 @@ return false; ObjCLanguageRuntime::ClassDescriptorSP descriptor( - runtime->GetClassDescriptor(valobj)); + runtime->GetNonKVOClassDescriptor(valobj)); if (!descriptor || !descriptor->IsValid()) return false; @@ -403,7 +403,7 @@ uint64_t value = 0; - ConstString class_name(descriptor->GetClassName()); + ConstString class_name = descriptor->GetClassName(); static const ConstString g_DictionaryI("__NSDictionaryI"); static const ConstString g_DictionaryM("__NSDictionaryM");
Index: lldb/source/Plugins/Language/ObjC/NSDictionary.cpp =================================================================== --- lldb/source/Plugins/Language/ObjC/NSDictionary.cpp +++ lldb/source/Plugins/Language/ObjC/NSDictionary.cpp @@ -388,7 +388,7 @@ return false; ObjCLanguageRuntime::ClassDescriptorSP descriptor( - runtime->GetClassDescriptor(valobj)); + runtime->GetNonKVOClassDescriptor(valobj)); if (!descriptor || !descriptor->IsValid()) return false; @@ -403,7 +403,7 @@ uint64_t value = 0; - ConstString class_name(descriptor->GetClassName()); + ConstString class_name = descriptor->GetClassName(); static const ConstString g_DictionaryI("__NSDictionaryI"); static const ConstString g_DictionaryM("__NSDictionaryM");
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits