summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-10-24 20:24:39 +0000
committerEnrico Granata <egranata@apple.com>2012-10-24 20:24:39 +0000
commit48ea80f9ff86cd7d6aa70cb1d03579c0c87b828b (patch)
tree31999b05063ac8e2fce44a833f485e6a919c544c /lldb/source/Core/ValueObject.cpp
parent6fd26424af4a012c851af4cc8da81bbc09ffd796 (diff)
downloadbcm5719-llvm-48ea80f9ff86cd7d6aa70cb1d03579c0c87b828b.tar.gz
bcm5719-llvm-48ea80f9ff86cd7d6aa70cb1d03579c0c87b828b.zip
Reimplementing SBValue/ValueObject.GetValueAsUnsigned() in terms of appropriate calls in Scalar - Making sure Scalar does the right thing when casting signed values to unsigned ones.
llvm-svn: 166618
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r--lldb/source/Core/ValueObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index 86b7e8981d4..f608f85f3cd 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -1294,7 +1294,7 @@ ValueObject::GetValueAsUnsigned (uint64_t fail_value, bool *success)
{
if (success)
*success = true;
- return scalar.GetRawBits64(fail_value);
+ return scalar.ULongLong(fail_value);
}
// fallthrough, otherwise...
}
@@ -1681,7 +1681,7 @@ ValueObject::SetValueFromCString (const char *value_str, Error& error)
Process *process = exe_ctx.GetProcessPtr();
if (process)
{
- addr_t target_addr = m_value.GetScalar().GetRawBits64(LLDB_INVALID_ADDRESS);
+ addr_t target_addr = m_value.GetScalar().ULongLong(LLDB_INVALID_ADDRESS);
size_t bytes_written = process->WriteScalarToMemory (target_addr,
new_scalar,
byte_size,
OpenPOWER on IntegriCloud