diff options
author | Enrico Granata <egranata@apple.com> | 2013-05-03 23:28:47 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-05-03 23:28:47 +0000 |
commit | 3880c4cebd5ce015dffb180d8905797f75a76362 (patch) | |
tree | 5525dcb76a7497509562816587556c421bea13f8 /lldb/source/Core/ValueObjectVariable.cpp | |
parent | b23b11300abd49c251d16bb491c004d597b5e19e (diff) | |
download | bcm5719-llvm-3880c4cebd5ce015dffb180d8905797f75a76362.tar.gz bcm5719-llvm-3880c4cebd5ce015dffb180d8905797f75a76362.zip |
Don’t use the resolved value to calculate the location unless the variable is in a register
This was causing a bunch of test cases to fail in python_api/process since they relied on SBValue::GetLocation()
llvm-svn: 181075
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectVariable.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp index 8204f11e4b9..daff740399e 100644 --- a/lldb/source/Core/ValueObjectVariable.cpp +++ b/lldb/source/Core/ValueObjectVariable.cpp @@ -326,8 +326,11 @@ ValueObjectVariable::GetDeclaration (Declaration &decl) const char * ValueObjectVariable::GetLocationAsCString () { - return GetLocationAsCStringImpl(m_resolved_value, - m_data); + if (m_resolved_value.GetContextType() == Value::eContextTypeRegisterInfo) + return GetLocationAsCStringImpl(m_resolved_value, + m_data); + else + return ValueObject::GetLocationAsCString(); } bool |