Mercurial > repos > blastem
comparison gdb_remote.c @ 1329:85a90964b557
Fix interaction between 68K debugger and instruction retranslation due to self modifying code or bank switching
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 24 Apr 2017 20:49:31 -0700 |
parents | 42fb3ee1e92c |
children | ded16f3d7eb4 d6d4c006a7b3 |
comparison
equal
deleted
inserted
replaced
1328:70faad89d491 | 1329:85a90964b557 |
---|---|
472 return; | 472 return; |
473 not_impl: | 473 not_impl: |
474 fatal_error("Command %s is not implemented, exiting...\n", command); | 474 fatal_error("Command %s is not implemented, exiting...\n", command); |
475 } | 475 } |
476 | 476 |
477 m68k_context * gdb_debug_enter(m68k_context * context, uint32_t pc) | 477 void gdb_debug_enter(m68k_context * context, uint32_t pc) |
478 { | 478 { |
479 dfprintf(stderr, "Entered debugger at address %X\n", pc); | 479 dfprintf(stderr, "Entered debugger at address %X\n", pc); |
480 if (expect_break_response) { | 480 if (expect_break_response) { |
481 gdb_send_command("S05"); | 481 gdb_send_command("S05"); |
482 expect_break_response = 0; | 482 expect_break_response = 0; |
554 } | 554 } |
555 if (curbuf == end) { | 555 if (curbuf == end) { |
556 curbuf = NULL; | 556 curbuf = NULL; |
557 } | 557 } |
558 } | 558 } |
559 return context; | |
560 } | 559 } |
561 | 560 |
562 #ifdef _WIN32 | 561 #ifdef _WIN32 |
563 void gdb_cleanup(void) | 562 void gdb_cleanup(void) |
564 { | 563 { |