From 9a87840e7e9b6bceefdb5c3dd3c43d2cbff06ca6 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 30 Aug 2014 04:02:19 -0700 Subject: [PATCH] Add invalid commands to the CLI debugger history instead of discarding them --- src/debugger/cli-debugger.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/debugger/cli-debugger.c b/src/debugger/cli-debugger.c index 27b8bcc2a..0f9ebcada 100644 --- a/src/debugger/cli-debugger.c +++ b/src/debugger/cli-debugger.c @@ -483,9 +483,8 @@ static void _commandLine(struct ARMDebugger* debugger) { _parse(cliDebugger, ev.str, strlen(ev.str) - 1); } } else { - if (_parse(cliDebugger, line, count - 1)) { - history(cliDebugger->histate, &ev, H_ENTER, line); - } + _parse(cliDebugger, line, count - 1); + history(cliDebugger->histate, &ev, H_ENTER, line); } } }