Properly recognize syntax errors
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Apr 2013 01:27:05 -0700
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/debugger.c
→
src/debugger.c
@@ -374,6 +374,11 @@ struct DebugVector* dv = 0;
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); }