diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-04-24 20:49:31 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-04-24 20:49:31 -0700 |
commit | 3f8fd3720d38bded32fdf88ed3824f9c8745a4a7 (patch) | |
tree | a89fd02a712b39a83eee336471a3752f5bb5797f /debug.c | |
parent | 8d362430c6785dcc4b9ed3a7a97acba8ebb15950 (diff) |
Fix interaction between 68K debugger and instruction retranslation due to self modifying code or bank switching
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |