summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectVariable.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-05-03 20:13:58 +0000
committerAdrian Prantl <aprantl@apple.com>2018-05-03 20:13:58 +0000
commit88fc73d544835b8be16ee64086e306eb6bb2b03e (patch)
treec23440bdb5fba8c03b076646db5add0b5f4415d0 /lldb/source/Core/ValueObjectVariable.cpp
parent9c2af27f80472f1db37996fab96b9e562945ac88 (diff)
downloadbcm5719-llvm-88fc73d544835b8be16ee64086e306eb6bb2b03e.tar.gz
bcm5719-llvm-88fc73d544835b8be16ee64086e306eb6bb2b03e.zip
Add back condition that was accidentally removed in r331462.
This should make the bots much happier. llvm-svn: 331479
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
-rw-r--r--lldb/source/Core/ValueObjectVariable.cpp8
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
OpenPOWER on IntegriCloud