From c7779cd106a6f19d5893448aa3978650aec7eac2 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 17 Jan 2016 14:36:25 -0800 Subject: Initialize commands field of breakpoint struct to NULL. Remove a debug printf --- debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug.c') 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); } -- cgit v1.2.3