From 0d42b81285229f3df4c5d560f71664a825398e78 Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Wed, 26 Jul 2023 19:51:06 -0400 Subject: [PATCH] Debugger: Fix 'run-to-cursor' context action --- pcsx2-qt/Debugger/DisassemblyWidget.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pcsx2-qt/Debugger/DisassemblyWidget.cpp b/pcsx2-qt/Debugger/DisassemblyWidget.cpp index bf26dda927..1fda733c9a 100644 --- a/pcsx2-qt/Debugger/DisassemblyWidget.cpp +++ b/pcsx2-qt/Debugger/DisassemblyWidget.cpp @@ -151,9 +151,10 @@ void DisassemblyWidget::contextNoopInstruction() void DisassemblyWidget::contextRunToCursor() { - Host::RunOnCPUThread([&] { CBreakPoints::AddBreakPoint(m_cpu->getCpuType(), m_selectedAddressStart); }); - - m_cpu->resumeCpu(); + Host::RunOnCPUThread([&] { + CBreakPoints::AddBreakPoint(m_cpu->getCpuType(), m_selectedAddressStart, true); + m_cpu->resumeCpu(); + }); } void DisassemblyWidget::contextJumpToCursor()