summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectRegister.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-08-24 18:21:05 +0000
committerSean Callanan <scallanan@apple.com>2012-08-24 18:21:05 +0000
commit6efc2ba7f8a825838f2fe83a444623faf35d5be5 (patch)
tree54f5c4b60795c5d220ab425f0579e7db25f25b6c /lldb/source/Core/ValueObjectRegister.cpp
parent6d675243b4685e2610fbbd1d79bb68da11f4128a (diff)
downloadbcm5719-llvm-6efc2ba7f8a825838f2fe83a444623faf35d5be5.tar.gz
bcm5719-llvm-6efc2ba7f8a825838f2fe83a444623faf35d5be5.zip
Changed register ValueObjects to report their
expression path in a way that can actually be resolved by "expr". llvm-svn: 162574
Diffstat (limited to 'lldb/source/Core/ValueObjectRegister.cpp')
-rw-r--r--lldb/source/Core/ValueObjectRegister.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObjectRegister.cpp b/lldb/source/Core/ValueObjectRegister.cpp
index 2f2959dd1fe..843f10d2f61 100644
--- a/lldb/source/Core/ValueObjectRegister.cpp
+++ b/lldb/source/Core/ValueObjectRegister.cpp
@@ -430,4 +430,10 @@ ValueObjectRegister::ResolveValue (Scalar &scalar)
return false;
}
+void
+ValueObjectRegister::GetExpressionPath (Stream &s, bool qualify_cxx_base_classes, GetExpressionPathFormat epformat)
+{
+ s.Printf("$%s", m_reg_info.name);
+}
+
OpenPOWER on IntegriCloud