diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-07-23 20:36:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-23 20:36:34 +0200 |
| commit | 2d8f54fdd257840cac63999e99856482d528b11a (patch) | |
| tree | e86e283ab71947cc8f5f64fb8a3ccb24f45a49d8 /Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp | |
| parent | 7db5caf43e85362aacb47fd4c5383ddaed31b052 (diff) | |
| parent | 5b13903e6a7e6ffcc707005692c3418d14e98137 (diff) | |
Merge pull request #12862 from SuperSamus/debugger-fixes
Debugger: Various fixes
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp index f16afbf51f..4b6233678c 100644 --- a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp @@ -1021,7 +1021,7 @@ void BranchWatchDialog::SetBreakpoints(bool break_on_hit, bool log_on_hit) const for (const QModelIndex& index : m_index_list_temp) { const u32 address = m_table_proxy->data(index, UserRole::ClickRole).value<u32>(); - breakpoints.Add(address, false, break_on_hit, log_on_hit, {}); + breakpoints.Add(address, break_on_hit, log_on_hit, {}); } emit m_code_widget->BreakpointsChanged(); m_code_widget->Update(); @@ -1111,11 +1111,9 @@ QMenu* BranchWatchDialog::GetTableContextMenu(const QModelIndex& index) for (auto& breakpoints = m_system.GetPowerPC().GetBreakPoints(); const QModelIndex& idx : m_index_list_temp) { - if (const TBreakPoint* bp = - breakpoints.GetBreakpoint(m_table_proxy->data(idx, UserRole::ClickRole).value<u32>())) + if (const TBreakPoint* bp = breakpoints.GetRegularBreakpoint( + m_table_proxy->data(idx, UserRole::ClickRole).value<u32>())) { - if (bp->is_temporary) - continue; if (bp->break_on_hit && bp->log_on_hit) { bp_both_count += 1; |
