next now skips over halt, closes #233

This commit is contained in:
Lior Halphon 2020-03-27 17:49:14 +03:00
parent 05403d3a56
commit 1a3572316f

View File

@ -2059,7 +2059,7 @@ void GB_debugger_run(GB_gameboy_t *gb)
if (gb->debug_disable) return; if (gb->debug_disable) return;
char *input = NULL; char *input = NULL;
if (gb->debug_next_command && gb->debug_call_depth <= 0) { if (gb->debug_next_command && gb->debug_call_depth <= 0 && !gb->halted) {
gb->debug_stopped = true; gb->debug_stopped = true;
} }
if (gb->debug_fin_command && gb->debug_call_depth == -1) { if (gb->debug_fin_command && gb->debug_call_depth == -1) {