Skip to content

Commit

Permalink
Merge pull request llvm#1792 from JDevlieghere/πŸ’/bastille/76e3a27c16d…
Browse files Browse the repository at this point in the history
…2a8171454cf12a33e35e3ae6f9dc2+33eb64704292dc2fc8585b8aa7459f96482c6cf9

πŸ’/bastille/76e3a27c16d2a8171454cf12a33e35e3ae6f9dc2+33eb64704292dc2fc8585b8aa7459f96482c6cf9
  • Loading branch information
fredriss committed Sep 12, 2020
2 parents 8a6f156 + 2fa3083 commit eb23ae0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
Expand Up @@ -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;
Expand Down
Expand Up @@ -21,7 +21,7 @@ def test_nscontainers_with_run_command(self):

def nscontainers_data_formatter_commands(self):
self.expect(
'frame variable newArray nsDictionary newDictionary nscfDictionary cfDictionaryRef newMutableDictionary cfarray_ref mutable_array_ref',
'frame variable newArray nsDictionary newDictionary nscfDictionary cfDictionaryRef newMutableDictionary newMutableDictionaryRef cfarray_ref mutable_array_ref',
substrs=[
'(NSArray *) newArray = ',
' @"50 elements"',
Expand All @@ -35,6 +35,8 @@ def nscontainers_data_formatter_commands(self):
' 2 key/value pairs',
'(NSDictionary *) newMutableDictionary = ',
' 21 key/value pairs',
'(CFMutableDictionaryRef) newMutableDictionaryRef = ',
' 21 key/value pairs',
'(CFArrayRef) cfarray_ref = ',
' @"3 elements"',
'(CFMutableArrayRef) mutable_array_ref = ',
Expand Down
Expand Up @@ -476,6 +476,8 @@ int main(int argc, const char *argv[]) {
[newMutableDictionary setObject:@"foo" forKey:@"bar19"];
[newMutableDictionary setObject:@"foo" forKey:@"bar20"];

CFMutableDictionaryRef newMutableDictionaryRef = CFDictionaryCreateMutableCopy(kCFAllocatorDefault, 0, newMutableDictionary);

id cfKeys[4] = {@"foo", @"bar", @"baz", @"quux"};
id cfValues[4] = {@"foo", @"bar", @"baz", @"quux"};
NSDictionary *nsDictionary = CFBridgingRelease(
Expand Down

0 comments on commit eb23ae0

Please sign in to comment.