summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index 4c7dcd9..d114531 100644
--- a/debug.c
+++ b/debug.c
@@ -523,7 +523,12 @@ z80_context * zdebugger(z80_context * context, uint16_t address)
break;
}
default:
- fprintf(stderr, "Unrecognized debugger command %s\n", input_buf);
+ if (
+ !context->options->gen.debug_cmd_handler
+ || !context->options->gen.debug_cmd_handler(&system->header, input_buf)
+ ) {
+ fprintf(stderr, "Unrecognized debugger command %s\n", input_buf);
+ }
break;
}
}