summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-01-17 14:36:25 -0800
committerMichael Pavone <pavone@retrodev.com>2016-01-17 14:36:25 -0800
commitc7779cd106a6f19d5893448aa3978650aec7eac2 (patch)
tree82517714bfc90b2fd4aed8655502164207ca0538 /debug.c
parent63f71342417637fa003923a0770f817a02366069 (diff)
Initialize commands field of breakpoint struct to NULL. Remove a debug printf
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index 52c044f..46aa4a8 100644
--- a/debug.c
+++ b/debug.c
@@ -528,7 +528,6 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst,
case 'c':
if (input_buf[1] == 0 || input_buf[1] == 'o' && input_buf[2] == 'n')
{
- printf("%X, %X\n", input_buf[1], input_buf[2]);
puts("Continuing");
return 0;
} else if (input_buf[1] == 'o' && input_buf[2] == 'm') {
@@ -606,6 +605,7 @@ int run_debugger_command(m68k_context *context, char *input_buf, m68kinst inst,
new_bp->next = breakpoints;
new_bp->address = value;
new_bp->index = bp_index++;
+ new_bp->commands = NULL;
breakpoints = new_bp;
printf("68K Breakpoint %d set at %X\n", new_bp->index, value);
}