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
This commit is contained in:
Greg Clayton 2011-08-16 00:44:29 +00:00
parent bd39703456
commit 6fdfc7e443
1 changed files with 4 additions and 3 deletions

View File

@ -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)
{