summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--lldb/include/lldb/Core/ValueObjectRegister.h3
-rw-r--r--lldb/source/Core/ValueObjectRegister.cpp6
2 files changed, 9 insertions, 0 deletions
diff --git a/lldb/include/lldb/Core/ValueObjectRegister.h b/lldb/include/lldb/Core/ValueObjectRegister.h
index ded6b3431f7..6bc64cc6908 100644
--- a/lldb/include/lldb/Core/ValueObjectRegister.h
+++ b/lldb/include/lldb/Core/ValueObjectRegister.h
@@ -162,6 +162,9 @@ public:
virtual bool
ResolveValue (Scalar &scalar);
+
+ virtual void
+ GetExpressionPath (Stream &s, bool qualify_cxx_base_classes, GetExpressionPathFormat epformat = eGetExpressionPathFormatDereferencePointers);
protected:
virtual bool
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