forked from OSchip/llvm-project
When updating a ValueObjectRegister, set the flag to remind yourself of whether it changed
llvm-svn: 280395
This commit is contained in:
parent
3b1a4ee7b1
commit
7e3da7140a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue