[Lldb-commits] [lldb] r224142 - Do not set the live address of a const result child if its parent has an invalid live address

Enrico Granata egranata at apple.com
Fri Dec 12 10:59:49 PST 2014


Author: enrico
Date: Fri Dec 12 12:59:49 2014
New Revision: 224142

URL: http://llvm.org/viewvc/llvm-project?rev=224142&view=rev
Log:
Do not set the live address of a const result child if its parent has an invalid live address

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

Modified: lldb/trunk/source/Core/ValueObjectConstResultImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectConstResultImpl.cpp?rev=224142&r1=224141&r2=224142&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectConstResultImpl.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectConstResultImpl.cpp Fri Dec 12 12:59:49 2014
@@ -139,7 +139,8 @@ ValueObjectConstResultImpl::CreateChildA
                                                   child_bitfield_bit_offset,
                                                   child_is_base_class,
                                                   child_is_deref_of_parent);
-        valobj->m_impl.SetLiveAddress(m_live_address+child_byte_offset);
+        if (m_live_address != LLDB_INVALID_ADDRESS)
+            valobj->m_impl.SetLiveAddress(m_live_address+child_byte_offset);
     }
     
     return valobj;





More information about the lldb-commits mailing list