summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-08-16 00:44:29 +0000
committerGreg Clayton <gclayton@apple.com>2011-08-16 00:44:29 +0000
commit6fdfc7e4435f55de613065a6fc6b8a937f3f3085 (patch)
treec46c31530f5b96891ddc489942b01de44421ebf1 /lldb/source/Core
parentbd397034560613ce478b306c54879022722f7254 (diff)
downloadbcm5719-llvm-6fdfc7e4435f55de613065a6fc6b8a937f3f3085.tar.gz
bcm5719-llvm-6fdfc7e4435f55de613065a6fc6b8a937f3f3085.zip
Fixed an issue where a variable that was a pointer whose
location was in a register would not be able to dereference children when displaying "*var" or the derefence of the variable. llvm-svn: 137695
Diffstat (limited to 'lldb/source/Core')
-rw-r--r--lldb/source/Core/ValueObjectChild.cpp7
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)
{
OpenPOWER on IntegriCloud