summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authoraldelaro5 <aldelaro5@gmail.com>2018-05-05 18:17:06 -0400
committeraldelaro5 <aldelaro5@gmail.com>2018-05-12 19:04:30 -0400
commit238c801711f9daa4613e988fa2147bd9e852ba91 (patch)
tree7861a27ea62df703b5a25a3197524ba9c1a34497 /Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
parent70ca98c8e782353f8885faf5854540cdef305e03 (diff)
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.
Diffstat (limited to 'Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
index 7bfc4131bd..10ac62d7a6 100644
--- a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp
@@ -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;