diff options
| author | Martino Fontana <tinozzo123@gmail.com> | 2024-06-15 11:02:15 +0200 |
|---|---|---|
| committer | Martino Fontana <tinozzo123@gmail.com> | 2024-07-02 18:29:42 +0200 |
| commit | 9aeeea37620cf7c554d1462188ad06c2f6d32617 (patch) | |
| tree | 80bc644e137c78952e1a9a1671b85818eea13f5a /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | |
| parent | dd67b7760137a7c383f3b326accb94be09ad6f9f (diff) | |
Debugger: Small Breakpoint cleanup
Reuse more code, change misleading names, remove useless documentation, add useful documentation
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index 51f2814d9b..e2df3420a6 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -869,7 +869,7 @@ void CodeViewWidget::OnRunToHere() { const u32 addr = GetContextAddress(); - m_system.GetPowerPC().GetDebugInterface().SetBreakpoint(addr); + m_system.GetPowerPC().GetDebugInterface().AddBreakpoint(addr); m_system.GetPowerPC().GetDebugInterface().RunToBreakpoint(); Update(); } @@ -1137,11 +1137,7 @@ void CodeViewWidget::showEvent(QShowEvent* event) void CodeViewWidget::ToggleBreakpoint() { - auto& power_pc = m_system.GetPowerPC(); - if (power_pc.GetDebugInterface().IsBreakpoint(GetContextAddress())) - power_pc.GetBreakPoints().Remove(GetContextAddress()); - else - power_pc.GetBreakPoints().Add(GetContextAddress()); + m_system.GetPowerPC().GetBreakPoints().ToggleBreakPoint(GetContextAddress()); emit BreakpointsChanged(); Update(); |
