[lldb] Use GetNonKVOClassDescriptor to get the NSDictionary class descriptor
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 11 Sep 2020 20:25:40 +0000 (13:25 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Sat, 12 Sep 2020 00:37:14 +0000 (17:37 -0700)
On macOS Big Sur the class descriptor contains the NSKVONotifying_
prefix. This is covered by TestDataFormatterObjCKVO.

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

lldb/source/Plugins/Language/ObjC/NSDictionary.cpp

index 3dc0767..b320916 100644 (file)
@@ -388,7 +388,7 @@ bool lldb_private::formatters::NSDictionarySummaryProvider(
     return false;
 
   ObjCLanguageRuntime::ClassDescriptorSP descriptor(
-      runtime->GetClassDescriptor(valobj));
+      runtime->GetNonKVOClassDescriptor(valobj));
 
   if (!descriptor || !descriptor->IsValid())
     return false;