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
This commit is contained in:
Enrico Granata
2011-08-04 01:41:02 +00:00
parent b224db72b0
commit 6fd87d5d33
12 changed files with 156 additions and 60 deletions

View File

@@ -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);