Properly recognize syntax errors

This commit is contained in:
Jeffrey Pfau 2013-04-13 01:27:05 -07:00
parent 0180ee090e
commit 5465543acc
1 changed files with 5 additions and 0 deletions

View File

@ -374,6 +374,11 @@ static void _parse(struct ARMDebugger* debugger, const char* line) {
if (firstSpace) {
cmdLength = firstSpace - line;
dv = _DVParse(debugger, firstSpace + 1);
if (dv->type == ERROR_TYPE) {
printf("Parse error\n");
_DVFree(dv);
return;
}
} else {
cmdLength = strlen(line);
}