summaryrefslogtreecommitdiffstats
path: root/lldb/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
commit2d928c4d07deb7cee1dda108d2cd5292b1d975c4 (patch)
tree2fe5b49ddd0151f749dc6198fd684d8dc0db12f2 /lldb/source/Core/ValueObjectRegister.cpp
parentf665ce60c29aa49f1b7fb71530d506897ae74135 (diff)
downloadbcm5719-llvm-2d928c4d07deb7cee1dda108d2cd5292b1d975c4.tar.gz
bcm5719-llvm-2d928c4d07deb7cee1dda108d2cd5292b1d975c4.zip
Fixed register value objects to be able to return their values as unsigned
and signed integers. llvm-svn: 137710
Diffstat (limited to 'lldb/source/Core/ValueObjectRegister.cpp')
-rw-r--r--lldb/source/Core/ValueObjectRegister.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObjectRegister.cpp b/lldb/source/Core/ValueObjectRegister.cpp
index f25652791d2..40e4d89a070 100644
--- a/lldb/source/Core/ValueObjectRegister.cpp
+++ b/lldb/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;
+}
+
+
OpenPOWER on IntegriCloud