Qt/debugger: properly updates when we break

The Host_UpdateDisasmDialog was unimplemented in Qt which is required to get updates when we break.  Additionally, this updates the debugger toolbar.
This commit is contained in:
aldelaro5 2018-05-05 18:17:06 -04:00
parent 70ca98c8e7
commit 238c801711
No known key found for this signature in database
GPG key ID: 054DD3E6FF48DB71
9 changed files with 80 additions and 29 deletions

View file

@ -187,13 +187,14 @@ u32 CodeViewWidget::GetAddress() const
return m_address;
}
void CodeViewWidget::SetAddress(u32 address)
void CodeViewWidget::SetAddress(u32 address, SetAddressUpdate update)
{
if (m_address == address)
return;
m_address = address;
Update();
if (update == SetAddressUpdate::WithUpdate)
Update();
}
void CodeViewWidget::ReplaceAddress(u32 address, bool blr)
@ -367,7 +368,7 @@ void CodeViewWidget::OnFollowBranch()
if (!branch_addr)
return;
SetAddress(branch_addr);
SetAddress(branch_addr, SetAddressUpdate::WithUpdate);
}
void CodeViewWidget::OnRenameSymbol()
@ -533,7 +534,7 @@ void CodeViewWidget::mousePressEvent(QMouseEvent* event)
if (column(item) == 0)
ToggleBreakpoint();
else
SetAddress(addr);
SetAddress(addr, SetAddressUpdate::WithUpdate);
Update();
break;