From 0787e5b2716d0c476cec9bba523e574940cb5f35 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 2 Apr 2016 19:06:43 +0300 Subject: [PATCH] Debugger's next command can now exit a function --- Core/debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/debugger.c b/Core/debugger.c index f850b8d9..8453bab1 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -321,7 +321,7 @@ unsigned short debugger_evaluate(GB_gameboy_t *gb, const char *string, unsigned void debugger_run(GB_gameboy_t *gb) { char *input = NULL; - if (gb->debug_next_command && gb->debug_call_depth == 0) { + if (gb->debug_next_command && gb->debug_call_depth <= 0) { gb->debug_stopped = true; } if (gb->debug_fin_command && gb->debug_call_depth == -1) {