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
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@150784 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/interface/SBTypeNameSpecifier.i b/scripts/Python/interface/SBTypeNameSpecifier.i
index f50761c..8bb69a7 100644
--- a/scripts/Python/interface/SBTypeNameSpecifier.i
+++ b/scripts/Python/interface/SBTypeNameSpecifier.i
@@ -21,6 +21,8 @@
SBTypeNameSpecifier (const char* name,
bool is_regex = false);
+
+ SBTypeNameSpecifier (SBType type);
SBTypeNameSpecifier (const lldb::SBTypeNameSpecifier &rhs);
@@ -35,6 +37,9 @@
const char*
GetName();
+ lldb::SBType
+ GetType ();
+
bool
IsRegex();
diff --git a/scripts/Python/interface/SBValue.i b/scripts/Python/interface/SBValue.i
index b1c2405..d61c7aa 100644
--- a/scripts/Python/interface/SBValue.i
+++ b/scripts/Python/interface/SBValue.i
@@ -136,6 +136,18 @@
bool
SetValueFromCString (const char *value_str);
+ lldb::SBTypeFormat
+ GetTypeFormat ();
+
+ lldb::SBTypeSummary
+ GetTypeSummary ();
+
+ lldb::SBTypeFilter
+ GetTypeFilter ();
+
+ lldb::SBTypeSynthetic
+ GetTypeSynthetic ();
+
lldb::SBValue
GetChildAtIndex (uint32_t idx);