summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-04 20:43:22 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-04 20:43:22 -0800
commite96ca2a17dc298977d31768226090bc22b0baa5c (patch)
tree7a81bcdb53c31e95da82637ed313015c5f94cd16 /debug.c
parent7efc7891c5d5c9bc1daf954510f90e79b6db5c75 (diff)
Don't lock up CPU if performing a read with writes configured when in PBC mode. Allow access to VDP debug commands from Z80 debugger in PBC mode. Handle Mode 4 in VDP debug print functions
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;
}
}