mirror of https://github.com/mgba-emu/mgba.git
Properly recognize syntax errors
This commit is contained in:
parent
0180ee090e
commit
5465543acc
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue