diff options
Diffstat (limited to 'lldb/source/Core/ValueObjectMemory.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObjectMemory.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lldb/source/Core/ValueObjectMemory.cpp b/lldb/source/Core/ValueObjectMemory.cpp index 098c0fb6410..bd7a791b9b1 100644 --- a/lldb/source/Core/ValueObjectMemory.cpp +++ b/lldb/source/Core/ValueObjectMemory.cpp @@ -185,10 +185,11 @@ ValueObjectMemory::UpdateValue () ExecutionContext exe_ctx (GetExecutionContextScope()); - if (exe_ctx.target) + Target *target = exe_ctx.GetTargetPtr(); + if (target) { - m_data.SetByteOrder(exe_ctx.target->GetArchitecture().GetByteOrder()); - m_data.SetAddressByteSize(exe_ctx.target->GetArchitecture().GetAddressByteSize()); + m_data.SetByteOrder(target->GetArchitecture().GetByteOrder()); + m_data.SetAddressByteSize(target->GetArchitecture().GetAddressByteSize()); } Value old_value(m_value); @@ -220,9 +221,9 @@ ValueObjectMemory::UpdateValue () // Make sure this type has a value before we try and read it // If we have a file address, convert it to a load address if we can. - if (value_type == Value::eValueTypeFileAddress && exe_ctx.process) + if (value_type == Value::eValueTypeFileAddress && exe_ctx.GetProcessPtr()) { - lldb::addr_t load_addr = m_address.GetLoadAddress(exe_ctx.target); + lldb::addr_t load_addr = m_address.GetLoadAddress(target); if (load_addr != LLDB_INVALID_ADDRESS) { m_value.SetValueType(Value::eValueTypeLoadAddress); |

