diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-01-17 14:36:25 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-01-17 14:36:25 -0800 |
commit | c7779cd106a6f19d5893448aa3978650aec7eac2 (patch) | |
tree | 82517714bfc90b2fd4aed8655502164207ca0538 | |
parent | 63f71342417637fa003923a0770f817a02366069 (diff) |
Initialize commands field of breakpoint struct to NULL. Remove a debug printf
-rw-r--r-- | debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |