comparison gdb_remote.c @ 2676:7e86ec94c899

Implement breakpoints in new 68K core
author Michael Pavone <pavone@retrodev.com>
date Sat, 15 Mar 2025 23:15:05 -0700
parents d44fe974fb85
children
comparison
equal deleted inserted replaced
2675:dbff641a33df 2676:7e86ec94c899
499 return; 499 return;
500 not_impl: 500 not_impl:
501 fatal_error("Command %s is not implemented, exiting...\n", command); 501 fatal_error("Command %s is not implemented, exiting...\n", command);
502 } 502 }
503 503
504 void gdb_debug_enter(m68k_context * context, uint32_t pc) 504 void gdb_debug_enter(void *vcontext, uint32_t pc)
505 { 505 {
506 m68k_context *context = vcontext;
506 dfprintf(stderr, "Entered debugger at address %X\n", pc); 507 dfprintf(stderr, "Entered debugger at address %X\n", pc);
507 if (expect_break_response) { 508 if (expect_break_response) {
508 if (context->wp_hit) { 509 if (context->wp_hit) {
509 context->wp_hit = 0; 510 context->wp_hit = 0;
510 char reply[128]; 511 char reply[128];