From 1ad4b28b42905879aa25d4adb0e2b4660146ad83 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 19 Aug 2018 18:43:15 +0300 Subject: [PATCH] Check and set debugger state when tracing STOP. --- newcpu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/newcpu.cpp b/newcpu.cpp index 8a65e208..4cd13547 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -4888,8 +4888,10 @@ static int do_specialties (int cycles) unset_special(SPCFLAG_BRK); #ifdef DEBUGGER if (stopped_debug && !regs.stopped) { - debugger_active = 1; - stopped_debug = false; + if (debugging) { + debugger_active = 1; + stopped_debug = false; + } } if (debugging) { if (!stopped_debug) -- 2.47.3