From 3f8fd3720d38bded32fdf88ed3824f9c8745a4a7 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 24 Apr 2017 20:49:31 -0700 Subject: Fix interaction between 68K debugger and instruction retranslation due to self modifying code or bank switching --- debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'debug.c') diff --git a/debug.c b/debug.c index b7bc9ed..547a2bd 100644 --- a/debug.c +++ b/debug.c @@ -885,7 +885,7 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst, } -m68k_context * debugger(m68k_context * context, uint32_t address) +void debugger(m68k_context * context, uint32_t address) { static char last_cmd[1024]; char input_buf[1024]; @@ -938,7 +938,7 @@ m68k_context * debugger(m68k_context * context, uint32_t address) if (debugging) { printf("68K Breakpoint %d hit\n", (*this_bp)->index); } else { - return context; + return; } } else { remove_breakpoint(context, address); @@ -986,5 +986,5 @@ m68k_context * debugger(m68k_context * context, uint32_t address) } debugging = run_debugger_command(context, input_buf, inst, after); } - return context; + return; } -- cgit v1.2.3