diff options
-rw-r--r-- | lldb/source/Core/ValueObjectChild.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Core/ValueObjectChild.cpp b/lldb/source/Core/ValueObjectChild.cpp index 989386eea68..4075f60ebb3 100644 --- a/lldb/source/Core/ValueObjectChild.cpp +++ b/lldb/source/Core/ValueObjectChild.cpp @@ -108,10 +108,11 @@ ValueObjectChild::UpdateValue () if (ClangASTContext::IsPointerOrReferenceType (parent->GetClangType())) { - uint32_t offset = 0; - m_value.GetScalar() = parent->GetDataExtractor().GetPointer(&offset); + const bool scalar_is_load_address = true; + AddressType address_type; - lldb::addr_t addr = m_value.GetScalar().ULongLong(LLDB_INVALID_ADDRESS); + lldb::addr_t addr = parent->GetPointerValue (address_type, scalar_is_load_address); + m_value.GetScalar() = addr; if (addr == LLDB_INVALID_ADDRESS) { |