[Lldb-commits] [lldb] r159390 - in /lldb/branches/apple/igneous: source/Core/FormatManager.cpp test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py test/functionalities/data-formatter/data-formatter-objc/main.m
Enrico Granata
egranata at apple.com
Thu Jun 28 16:08:21 PDT 2012
Author: enrico
Date: Thu Jun 28 18:08:21 2012
New Revision: 159390
URL: http://llvm.org/viewvc/llvm-project?rev=159390&view=rev
Log:
<rdar://problem/11755446> Making sure to provide summaries for one more NSString subclass
Modified:
lldb/branches/apple/igneous/source/Core/FormatManager.cpp
lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py
lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/main.m
Modified: lldb/branches/apple/igneous/source/Core/FormatManager.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/apple/igneous/source/Core/FormatManager.cpp?rev=159390&r1=159389&r2=159390&view=diff
==============================================================================
--- lldb/branches/apple/igneous/source/Core/FormatManager.cpp (original)
+++ lldb/branches/apple/igneous/source/Core/FormatManager.cpp Thu Jun 28 18:08:21 2012
@@ -1014,7 +1014,8 @@
AddScriptSummary(appkit_category_sp, "lldb.formatters.objc.CFString.CFString_SummaryProvider", ConstString("__NSCFString"), appkit_flags);
AddScriptSummary(appkit_category_sp, "lldb.formatters.objc.CFString.CFString_SummaryProvider", ConstString("NSCFConstantString"), appkit_flags);
AddScriptSummary(appkit_category_sp, "lldb.formatters.objc.CFString.CFString_SummaryProvider", ConstString("NSCFString"), appkit_flags);
-
+ AddScriptSummary(appkit_category_sp, "lldb.formatters.objc.CFString.CFString_SummaryProvider", ConstString("NSPathStore2"), appkit_flags);
+
AddScriptSummary(appkit_category_sp, "lldb.formatters.objc.NSBundle.NSBundle_SummaryProvider", ConstString("NSBundle"), appkit_flags);
AddScriptSummary(appkit_category_sp, "lldb.formatters.objc.NSData.NSData_SummaryProvider", ConstString("NSData"), appkit_flags);
Modified: lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py?rev=159390&r1=159389&r2=159390&view=diff
==============================================================================
--- lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py (original)
+++ lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py Thu Jun 28 18:08:21 2012
@@ -266,6 +266,9 @@
'(NSAttributedString *) mutableAttrString = ',' @"hello world from foo"',
'(NSString *) mutableGetConst = ',' @"foo said this string needs to be very long so much longer than whatever other string has been seen ever before by anyone of the mankind that of course this is still not long enough given what foo our friend foo our lovely dearly friend foo desired of us so i am adding more stuff here for the sake of it and for the joy of our friend who is named guess what just foo. hence, dear friend foo, stay safe, your string is now long enough to accommodate your testing need and I will make sure that if not we extend it with even more fuzzy random meaningless words pasted one after the other from a long tiresome friday evening spent working in my office. my office mate went home but I am still randomly typing just for the fun of seeing what happens of the length of a Mutable String in Cocoa if it goes beyond one byte.. so be it, dear foo"'])
+ self.expect('frame variable -d run-target path',substrs = ['usr/blah/stuff'])
+ self.expect('frame variable path',substrs = ['usr/blah/stuff'])
+
self.expect('frame variable immutableData mutableData data_ref mutable_data_ref mutable_string_ref',
substrs = ['(NSData *) immutableData = ',' 4 bytes',
'(NSData *) mutableData = ',' 14 bytes',
Modified: lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/main.m?rev=159390&r1=159389&r2=159390&view=diff
==============================================================================
--- lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/main.m (original)
+++ lldb/branches/apple/igneous/test/functionalities/data-formatter/data-formatter-objc/main.m Thu Jun 28 18:08:21 2012
@@ -646,6 +646,9 @@
Class myclass4 = NSClassFromString(@"NSMutableArray");
Class myclass5 = [nil class];
+ NSArray *components = @[@"usr", @"blah", @"stuff"];
+ NSString *path = [NSString pathWithComponents: components];
+
// Set break point at this line.
[molecule addObserver:[My_KVO_Observer new] forKeyPath:@"atoms" options:0 context:NULL];
More information about the lldb-commits
mailing list