When updating a ValueObjectRegister, set the flag to remind yourself of whether it changed

llvm-svn: 280395
This commit is contained in:
Enrico Granata 2016-09-01 18:31:40 +00:00
parent 3b1a4ee7b1
commit 7e3da7140a
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}