Add invalid commands to the CLI debugger history instead of discarding them
Jeffrey Pfau jeffrey@endrift.com
Sat, 30 Aug 2014 04:02:19 -0700
1 files changed,
2 insertions(+),
3 deletions(-)
jump to
M
src/debugger/cli-debugger.c
→
src/debugger/cli-debugger.c
@@ -483,9 +483,8 @@ if (history(cliDebugger->histate, &ev, H_FIRST) >= 0) {
_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); } } }