Debugger's next command can now exit a function

This commit is contained in:
Lior Halphon 2016-04-02 19:06:43 +03:00
parent b7555e9976
commit 0787e5b271

View File

@ -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) {