aboutsummaryrefslogtreecommitdiff
path: root/source/Core/ValueObjectRegister.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-08-16 03:49:01 +0000
committerGreg Clayton <gclayton@apple.com>2011-08-16 03:49:01 +0000
commitd6bcc0db2ffc5cf724460f8e260c5709e07ea642 (patch)
tree6ccdef92349ae08bf28fd1a11d420c1f6ae564bf /source/Core/ValueObjectRegister.cpp
parentf733b9376ed5e84dadcfe0c76f6d8bc128f4a90f (diff)
downloadlldb-d6bcc0db2ffc5cf724460f8e260c5709e07ea642.tar.gz
Fixed register value objects to be able to return their values as unsigned
and signed integers. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@137710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Core/ValueObjectRegister.cpp')
-rw-r--r--source/Core/ValueObjectRegister.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Core/ValueObjectRegister.cpp b/source/Core/ValueObjectRegister.cpp
index f25652791..40e4d89a0 100644
--- a/source/Core/ValueObjectRegister.cpp
+++ b/source/Core/ValueObjectRegister.cpp
@@ -404,3 +404,12 @@ ValueObjectRegister::SetValueFromCString (const char *value_str)
return false;
}
+bool
+ValueObjectRegister::ResolveValue (Scalar &scalar)
+{
+ if (UpdateValueIfNeeded(false)) // make sure that you are up to date before returning anything
+ return m_reg_value.GetScalarValue(scalar);
+ return false;
+}
+
+