]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Check and set debugger state when tracing STOP.
authorToni Wilen <twilen@winuae.net>
Sun, 19 Aug 2018 15:43:15 +0000 (18:43 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 19 Aug 2018 15:43:15 +0000 (18:43 +0300)
newcpu.cpp

index 8a65e20828344ef40e13a9fa875d82644c392514..4cd135478b392fd33776a6f0c3a0f139f288288c 100644 (file)
@@ -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)