Mercurial > repos > blastem
diff debug.c @ 1149:6b0da6021544
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
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 04 Jan 2017 20:43:22 -0800 |
parents | 8f14767661fa |
children | de742a7bd9f7 |
line wrap: on
line diff
--- a/debug.c Tue Jan 03 23:03:30 2017 -0800 +++ b/debug.c Wed Jan 04 20:43:22 2017 -0800 @@ -523,7 +523,12 @@ 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; } }