From: Adrian Prantl Date: Thu, 3 May 2018 20:13:58 +0000 (+0000) Subject: Add back condition that was accidentally removed in r331462. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88fc73d544835b8be16ee64086e306eb6bb2b03e;p=platform%2Fupstream%2Fllvm.git Add back condition that was accidentally removed in r331462. This should make the bots much happier. llvm-svn: 331479 --- diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp index e446e2e..a1c69f4 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