diff options
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectVariable.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp index e446e2eae07..a1c69f45ce6 100644 --- a/lldb/source/Core/ValueObjectVariable.cpp +++ b/lldb/source/Core/ValueObjectVariable.cpp @@ -234,10 +234,12 @@ bool ValueObjectVariable::UpdateValue() { // If this variable is a simple type, we read all data for it into // m_data. Make sure this type has a value before we try and read it - SymbolContext var_sc; - variable->CalculateSymbolContext(&var_sc); // If we have a file address, convert it to a load address if we can. - m_value.ConvertToLoadAddress(var_sc); + if (value_type == Value::eValueTypeFileAddress && process_is_alive) { + SymbolContext var_sc; + variable->CalculateSymbolContext(&var_sc); + m_value.ConvertToLoadAddress(var_sc); + } if (!CanProvideValue()) { // this value object represents an aggregate type whose children have |