[Lldb-commits] [lldb] r137695 - /lldb/trunk/source/Core/ValueObjectChild.cpp

Greg Clayton gclayton at apple.com
Mon Aug 15 17:44:29 PDT 2011


Author: gclayton
Date: Mon Aug 15 19:44:29 2011
New Revision: 137695

URL: http://llvm.org/viewvc/llvm-project?rev=137695&view=rev
Log:
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.


Modified:
    lldb/trunk/source/Core/ValueObjectChild.cpp

Modified: lldb/trunk/source/Core/ValueObjectChild.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectChild.cpp?rev=137695&r1=137694&r2=137695&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectChild.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectChild.cpp Mon Aug 15 19:44:29 2011
@@ -108,10 +108,11 @@
 
             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)
                 {





More information about the lldb-commits mailing list