comparison segacd.c @ 2106:d2989e32c026

Fix bug in Sub CPU debugger suport
author Michael Pavone <pavone@retrodev.com>
date Sat, 12 Feb 2022 14:50:59 -0800
parents ff32a90260c9
children 68d61ba1b762
comparison
equal deleted inserted replaced
2105:1bda10d60b29 2106:d2989e32c026
877 { 877 {
878 segacd_context *cd = context->system; 878 segacd_context *cd = context->system;
879 scd_peripherals_run(cd, context->current_cycle); 879 scd_peripherals_run(cd, context->current_cycle);
880 if (address && cd->enter_debugger) { 880 if (address && cd->enter_debugger) {
881 genesis_context *gen = cd->genesis; 881 genesis_context *gen = cd->genesis;
882 cd->enter_debugger = 0;
882 if (gen->header.debugger_type == DEBUGGER_NATIVE) { 883 if (gen->header.debugger_type == DEBUGGER_NATIVE) {
883 debugger(context, address); 884 debugger(context, address);
884 } else { 885 } else {
885 gdb_debug_enter(context, address); 886 gdb_debug_enter(context, address);
886 } 887 }