Cleaned up the SBType.h file to not include internal headers and reorganized
the SBType implementation classes.
Fixed LLDB core and the test suite to not use deprecated SBValue APIs.
Added a few new APIs to SBValue:
int64_t
SBValue::GetValueAsSigned(int64_t fail_value=0);
uint64_t
SBValue::GetValueAsUnsigned(uint64_t fail_value=0)
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136829 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/interface/SBType.i b/scripts/Python/interface/SBType.i
index 03cfe44..3bc4c98 100644
--- a/scripts/Python/interface/SBType.i
+++ b/scripts/Python/interface/SBType.i
@@ -54,7 +54,7 @@
SBTypeList();
void
- AppendType(SBType type);
+ Append(const SBType& type);
SBType
GetTypeAtIndex(int index);
diff --git a/scripts/Python/interface/SBValue.i b/scripts/Python/interface/SBValue.i
index 24f9660..22186e1 100644
--- a/scripts/Python/interface/SBValue.i
+++ b/scripts/Python/interface/SBValue.i
@@ -82,14 +82,6 @@
size_t
GetByteSize ();
- %define DEPRECATED
- "The method which takes an SBFrame is deprecated - SBValues know their own frames."
- %enddef
-
- %feature("docstring", DEPRECATED) IsInScope;
- bool
- IsInScope (const lldb::SBFrame &frame);
-
bool
IsInScope ();
@@ -99,48 +91,30 @@
void
SetFormat (lldb::Format format);
- %feature("docstring", DEPRECATED) GetValue;
- const char *
- GetValue (const lldb::SBFrame &frame);
-
const char *
GetValue ();
+ int64_t
+ GetValueAsSigned(int64_t fail_value=0);
+
+ uint64_t
+ GetValueAsUnsigned(uint64_t fail_value=0);
+
ValueType
GetValueType ();
- %feature("docstring", DEPRECATED) GetValueDidChange;
- bool
- GetValueDidChange (const lldb::SBFrame &frame);
-
bool
GetValueDidChange ();
- %feature("docstring", DEPRECATED) GetSummary;
- const char *
- GetSummary (const lldb::SBFrame &frame);
-
const char *
GetSummary ();
- %feature("docstring", DEPRECATED) GetObjectDescription;
- const char *
- GetObjectDescription (const lldb::SBFrame &frame);
-
const char *
GetObjectDescription ();
- %feature("docstring", DEPRECATED) GetLocation;
- const char *
- GetLocation (const lldb::SBFrame &frame);
-
const char *
GetLocation ();
- %feature("docstring", DEPRECATED) SetValueFromCString;
- bool
- SetValueFromCString (const lldb::SBFrame &frame, const char *value_str);
-
bool
SetValueFromCString (const char *value_str);