mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-03 09:48:32 +00:00
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:
parent
70ca98c8e7
commit
238c801711
9 changed files with 80 additions and 29 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue