diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-08-03 22:57:10 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-08-03 22:57:10 +0000 |
| commit | fe42ac4d0a4836829616d054c524e8cc10b25b88 (patch) | |
| tree | bf0d085081bec250842526fb9342d48dcbae138b /lldb/scripts/Python | |
| parent | 3ef20e35f9181c28650f60c3845c4b1c737853fb (diff) | |
| download | llvm-fe42ac4d0a4836829616d054c524e8cc10b25b88.zip llvm-fe42ac4d0a4836829616d054c524e8cc10b25b88.tar.gz llvm-fe42ac4d0a4836829616d054c524e8cc10b25b88.tar.bz2 | |
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)
llvm-svn: 136829
Diffstat (limited to 'lldb/scripts/Python')
| -rw-r--r-- | lldb/scripts/Python/interface/SBType.i | 2 | ||||
| -rw-r--r-- | lldb/scripts/Python/interface/SBValue.i | 38 |
2 files changed, 7 insertions, 33 deletions
diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i index 03cfe44..3bc4c98 100644 --- a/lldb/scripts/Python/interface/SBType.i +++ b/lldb/scripts/Python/interface/SBType.i @@ -54,7 +54,7 @@ namespace lldb { SBTypeList(); void - AppendType(SBType type); + Append(const SBType& type); SBType GetTypeAtIndex(int index); diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index 24f9660..22186e1 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -82,14 +82,6 @@ public: 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 @@ public: 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); |
