Add invalid commands to the CLI debugger history instead of discarding them

This commit is contained in:
Jeffrey Pfau 2014-08-30 04:02:19 -07:00
parent e6148ddb13
commit 9a87840e7e
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}
}