diff options
author | Greg Clayton <gclayton@apple.com> | 2011-07-06 16:49:27 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-07-06 16:49:27 +0000 |
commit | 262f80df5e60c76261ff5a65f02dc7e38a58a0ee (patch) | |
tree | 32f48c66ca9b5ef707367bf4bf4d5f8bbcf16811 /lldb/source/Core/ValueObject.cpp | |
parent | 37d30835f0592c32aa403e8ade88b8fc2ad2d612 (diff) | |
download | bcm5719-llvm-262f80df5e60c76261ff5a65f02dc7e38a58a0ee.tar.gz bcm5719-llvm-262f80df5e60c76261ff5a65f02dc7e38a58a0ee.zip |
Made the string representation for a SBValue return what "frame variable"
would return instead of a less than helpful "name: '%s'" description.
Make sure that when we ask for the error from a ValueObject object we
first update the value if needed.
Cleaned up some SB functions to use internal functions and not re-call
through the public API when possible.
llvm-svn: 134497
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r-- | lldb/source/Core/ValueObject.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index e0816309708..e892e3e8678 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -212,8 +212,9 @@ ValueObject::GetDataExtractor () } const Error & -ValueObject::GetError() const +ValueObject::GetError() { + UpdateValueIfNeeded(); return m_error; } @@ -1929,7 +1930,10 @@ ValueObject::EvaluationPoint::SyncWithProcessState() { Thread *our_thread = m_process_sp->GetThreadList().FindThreadByIndexID (m_thread_id).get(); if (our_thread == NULL) - SetInvalid(); + { + //SetInvalid(); + m_exe_scope = m_process_sp.get(); + } else { m_exe_scope = our_thread; |