[Lldb-commits] [lldb] r280395 - When updating a ValueObjectRegister, set the flag to remind yourself of whether it changed

Enrico Granata via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 1 11:31:41 PDT 2016


Author: enrico
Date: Thu Sep  1 13:31:40 2016
New Revision: 280395

URL: http://llvm.org/viewvc/llvm-project?rev=280395&view=rev
Log:
When updating a ValueObjectRegister, set the flag to remind yourself of whether it changed


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

Modified: lldb/trunk/source/Core/ValueObjectRegister.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectRegister.cpp?rev=280395&r1=280394&r2=280395&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectRegister.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectRegister.cpp Thu Sep  1 13:31:40 2016
@@ -369,6 +369,7 @@ ValueObjectRegister::UpdateValue ()
 
     if (m_reg_ctx_sp)
     {
+        RegisterValue m_old_reg_value(m_reg_value);
         if (m_reg_ctx_sp->ReadRegister (&m_reg_info, m_reg_value))
         {
             if (m_reg_value.GetData (m_data))
@@ -380,6 +381,7 @@ ValueObjectRegister::UpdateValue ()
                 m_value.SetValueType(Value::eValueTypeHostAddress);
                 m_value.GetScalar() = (uintptr_t)m_data.GetDataStart();
                 SetValueIsValid (true);
+                SetValueDidChange(!(m_old_reg_value == m_reg_value));
                 return true;
             }
         }




More information about the lldb-commits mailing list