From 864e3e8413b2ab0fad4432943056be03d60e73fc Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 17 Feb 2012 03:18:30 +0000 Subject: Adding formatters for several useful Objective-C/Cocoa data types. The new categories are not enabled at startup, but can be manually activated if desired. Adding new API calls to SBValue to be able to retrieve the associated formatters Some refactoring to FormatNavigator::Get() in order to shrink its size down to more manageable terms (a future, massive, refactoring effort will still be needed) Test cases added for the above llvm-svn: 150784 --- lldb/scripts/Python/interface/SBTypeNameSpecifier.i | 5 +++++ lldb/scripts/Python/interface/SBValue.i | 12 ++++++++++++ 2 files changed, 17 insertions(+) (limited to 'lldb/scripts/Python') diff --git a/lldb/scripts/Python/interface/SBTypeNameSpecifier.i b/lldb/scripts/Python/interface/SBTypeNameSpecifier.i index f50761c602e..8bb69a7d397 100644 --- a/lldb/scripts/Python/interface/SBTypeNameSpecifier.i +++ b/lldb/scripts/Python/interface/SBTypeNameSpecifier.i @@ -21,6 +21,8 @@ namespace lldb { SBTypeNameSpecifier (const char* name, bool is_regex = false); + + SBTypeNameSpecifier (SBType type); SBTypeNameSpecifier (const lldb::SBTypeNameSpecifier &rhs); @@ -35,6 +37,9 @@ namespace lldb { const char* GetName(); + lldb::SBType + GetType (); + bool IsRegex(); diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index b1c24055b67..d61c7aa7752 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -136,6 +136,18 @@ public: bool SetValueFromCString (const char *value_str); + lldb::SBTypeFormat + GetTypeFormat (); + + lldb::SBTypeSummary + GetTypeSummary (); + + lldb::SBTypeFilter + GetTypeFilter (); + + lldb::SBTypeSynthetic + GetTypeSynthetic (); + lldb::SBValue GetChildAtIndex (uint32_t idx); -- cgit v1.2.3