From e0e2d4a66ef295dc56be56210893f5f6fcbbdc00 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 6 Jun 2016 22:06:51 -0700 Subject: [PATCH] Debugger: CLI debugger now exits when end-of-stream is reached --- CHANGES | 1 + src/debugger/cli-debugger.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index f2657c24a..6ff29987f 100644 --- a/CHANGES +++ b/CHANGES @@ -34,6 +34,7 @@ Misc: - Libretro: Disable logging game errors, BIOS calls and stubs in release builds - Qt: Canonicalize file paths when loading games - Qt: Add refresh button to controller editing + - Debugger: CLI debugger now exits when end-of-stream is reached 0.4.0: (2016-02-02) Features: diff --git a/src/debugger/cli-debugger.c b/src/debugger/cli-debugger.c index 1a07e1768..5e1eb4476 100644 --- a/src/debugger/cli-debugger.c +++ b/src/debugger/cli-debugger.c @@ -774,6 +774,7 @@ static void _commandLine(struct ARMDebugger* debugger) { while (debugger->state == DEBUGGER_PAUSED) { line = el_gets(cliDebugger->elstate, &count); if (!line) { + debugger->state = DEBUGGER_SHUTDOWN; return; } if (line[0] == '\n') {