From 6fd87d5d33c677badffcab70b60e8dcc169de07e Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Thu, 4 Aug 2011 01:41:02 +0000 Subject: APIs to GetValueAsSigned/Unsigned() in SBValue now also accept an SBError parameter to give more info about any problem The synthetic children providers now use the new (safer) APIs to get the values of objects As a side effect, fixed an issue in ValueObject where ResolveValue() was not always updating the value before reading it llvm-svn: 136861 --- lldb/scripts/Python/interface/SBValue.i | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index 22186e1b8a3..d73e6012c62 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -95,8 +95,14 @@ public: GetValue (); int64_t - GetValueAsSigned(int64_t fail_value=0); + GetValueAsSigned(SBError& error, int64_t fail_value=0); + uint64_t + GetValueAsUnsigned(SBError& error, uint64_t fail_value=0); + + int64_t + GetValueAsSigned(int64_t fail_value=0); + uint64_t GetValueAsUnsigned(uint64_t fail_value=0); -- cgit v1.2.3