summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/FormatManager.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-03-01 19:32:33 +0000
committerEnrico Granata <egranata@apple.com>2012-03-01 19:32:33 +0000
commit896cd1d3e675b1c7be05be9975b09df1bafca9eb (patch)
tree611167d97b5f252bc9b80677d08ed7a34398257a /lldb/source/Core/FormatManager.cpp
parent34085df4e852438dd156fcd87bfd650be9243d2c (diff)
downloadbcm5719-llvm-896cd1d3e675b1c7be05be9975b09df1bafca9eb.tar.gz
bcm5719-llvm-896cd1d3e675b1c7be05be9975b09df1bafca9eb.zip
(a) adding an introspection formatter for NS(Mutable)IndexSet
(b) fixes and improvements to the formatters for NSDate and NSString (c) adding an introspection formatter for NSCountedSet (d) making the Objective-C formatters test cases pass on both 64 and 32 bit one of the test cases is marked as expected failure on i386 - support needs to be added to the LLDB core for it to pass llvm-svn: 151826
Diffstat (limited to 'lldb/source/Core/FormatManager.cpp')
-rw-r--r--lldb/source/Core/FormatManager.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/lldb/source/Core/FormatManager.cpp b/lldb/source/Core/FormatManager.cpp
index af0ef7954c6..4e12903cdcb 100644
--- a/lldb/source/Core/FormatManager.cpp
+++ b/lldb/source/Core/FormatManager.cpp
@@ -738,7 +738,7 @@ FormatManager::LoadObjCFormatters()
ConstString("CFRange"),
objc_flags);
AddSummary(corefoundation_category_sp,
- "x=${var.x}, y=${var.y}",
+ "(x=${var.x}, y=${var.y})",
ConstString("NSPoint"),
objc_flags);
AddSummary(corefoundation_category_sp,
@@ -754,7 +754,7 @@ FormatManager::LoadObjCFormatters()
ConstString("NSRectArray"),
objc_flags);
AddSummary(objc_category_sp,
- "width=${var.width}, height=${var.height}",
+ "(width=${var.width}, height=${var.height})",
ConstString("NSSize"),
objc_flags);
@@ -856,6 +856,15 @@ FormatManager::LoadObjCFormatters()
AddScriptSummary(appkit_category_sp, "NSDate.NSDate_SummaryProvider", ConstString("NSDate"), appkit_flags);
+ // CFAbsoluteTime is actually a double rather than a pointer to an object
+ // we do not care about the numeric value, since it is probably meaningless to users
+ appkit_flags.SetDontShowValue(true);
+ AddScriptSummary(appkit_category_sp, "NSDate.CFAbsoluteTime_SummaryProvider", ConstString("CFAbsoluteTime"), appkit_flags);
+ appkit_flags.SetDontShowValue(false);
+
+ AddScriptSummary(appkit_category_sp, "NSIndexSet.NSIndexSet_SummaryProvider", ConstString("NSIndexSet"), appkit_flags);
+ AddScriptSummary(appkit_category_sp, "NSIndexSet.NSIndexSet_SummaryProvider", ConstString("NSMutableIndexSet"), appkit_flags);
+
TypeCategoryImpl::SharedPointer vectors_category_sp = GetCategory(m_vectortypes_category_name);
TypeSummaryImpl::Flags vector_flags;
OpenPOWER on IntegriCloud