Add back condition that was accidentally removed in r331462.
authorAdrian Prantl <aprantl@apple.com>
Thu, 3 May 2018 20:13:58 +0000 (20:13 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 3 May 2018 20:13:58 +0000 (20:13 +0000)
This should make the bots much happier.

llvm-svn: 331479

lldb/source/Core/ValueObjectVariable.cpp

index e446e2e..a1c69f4 100644 (file)
@@ -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