summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-04-24 20:49:31 -0700
committerMichael Pavone <pavone@retrodev.com>2017-04-24 20:49:31 -0700
commit3f8fd3720d38bded32fdf88ed3824f9c8745a4a7 (patch)
treea89fd02a712b39a83eee336471a3752f5bb5797f /debug.c
parent8d362430c6785dcc4b9ed3a7a97acba8ebb15950 (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.c6
1 files changed, 3 insertions, 3 deletions
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;
}