diff options
author | Davide Italiano <davide@freebsd.org> | 2018-03-14 23:09:36 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-03-14 23:09:36 +0000 |
commit | 8f2e86da36269ec23bb22ef93b82e76e5d22166a (patch) | |
tree | 9fa711dad63e1af5096f867ffd83ae927b56c89e /lldb/source/Plugins/Language/ObjC | |
parent | 5df2db121637c1c3234ed8619cc7f77cfe6531da (diff) | |
download | bcm5719-llvm-8f2e86da36269ec23bb22ef93b82e76e5d22166a.tar.gz bcm5719-llvm-8f2e86da36269ec23bb22ef93b82e76e5d22166a.zip |
[DataFormatters] Implement summary for __NSDictionary0.
Before the patch:
(lldb) frame var emptyDictionary
(__NSDictionary0 *) emptyDictionary = 0x0000000100304420
After:
(lldb) frame var emptyDictionary
(__NSDictionary0 *) emptyDictionary = 0x0000000100304420 0 key/value pairs
There's nothing much else we can do, as this is always empty by
definition.
<rdar://problem/34806516>
llvm-svn: 327587
Diffstat (limited to 'lldb/source/Plugins/Language/ObjC')
-rw-r--r-- | lldb/source/Plugins/Language/ObjC/NSDictionary.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp index 0af36f435ec..67b0ce863a7 100644 --- a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp +++ b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp @@ -396,6 +396,7 @@ bool lldb_private::formatters::NSDictionarySummaryProvider( static const ConstString g_DictionaryMLegacy("__NSDictionaryM_Legacy"); static const ConstString g_DictionaryMImmutable("__NSDictionaryM_Immutable"); static const ConstString g_Dictionary1("__NSSingleEntryDictionaryI"); + static const ConstString g_Dictionary0("__NSDictionary0"); if (class_name.IsEmpty()) return false; @@ -423,6 +424,8 @@ bool lldb_private::formatters::NSDictionarySummaryProvider( return false; } else if (class_name == g_Dictionary1) { value = 1; + } else if (class_name == g_Dictionary0) { + value = 0; } else { auto &map(NSDictionary_Additionals::GetAdditionalSummaries()); @@ -481,6 +484,7 @@ lldb_private::formatters::NSDictionarySyntheticFrontEndCreator( static const ConstString g_Dictionary1("__NSSingleEntryDictionaryI"); static const ConstString g_DictionaryImmutable("__NSDictionaryM_Immutable"); static const ConstString g_DictionaryMLegacy("__NSDictionaryM_Legacy"); + static const ConstString g_Dictionary0("__NSDictionary0"); if (class_name.IsEmpty()) return nullptr; |