diff options
author | Sean Callanan <scallanan@apple.com> | 2012-08-24 18:21:05 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-08-24 18:21:05 +0000 |
commit | 6efc2ba7f8a825838f2fe83a444623faf35d5be5 (patch) | |
tree | 54f5c4b60795c5d220ab425f0579e7db25f25b6c | |
parent | 6d675243b4685e2610fbbd1d79bb68da11f4128a (diff) | |
download | bcm5719-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.h | 3 | ||||
-rw-r--r-- | lldb/source/Core/ValueObjectRegister.cpp | 6 |
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); +} + |