comparison genesis.c @ 2033:894bf99a13f1

Make ui.enter_debuger respect which debuger is active
author Michael Pavone <pavone@retrodev.com>
date Sat, 20 Feb 2021 14:52:55 -0800
parents e7a516f08cec
children 8b2ef428d1aa
comparison
equal deleted inserted replaced
2032:441d5d6cea2f 2033:894bf99a13f1
457 context->target_cycle = gen->reset_cycle; 457 context->target_cycle = gen->reset_cycle;
458 } 458 }
459 if (address) { 459 if (address) {
460 if (gen->header.enter_debugger) { 460 if (gen->header.enter_debugger) {
461 gen->header.enter_debugger = 0; 461 gen->header.enter_debugger = 0;
462 debugger(context, address); 462 if (gen->header.debugger_type == DEBUGGER_NATIVE) {
463 debugger(context, address);
464 } else {
465 gdb_debug_enter(context, address);
466 }
463 } 467 }
464 #ifdef NEW_CORE 468 #ifdef NEW_CORE
465 if (gen->header.save_state) { 469 if (gen->header.save_state) {
466 #else 470 #else
467 if (gen->header.save_state && (z_context->pc || !z_context->native_pc || z_context->reset || !z_context->busreq)) { 471 if (gen->header.save_state && (z_context->pc || !z_context->native_pc || z_context->reset || !z_context->busreq)) {