From 5465543accc2b2e335f351b9ee1099c3826ba1f7 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 13 Apr 2013 01:27:05 -0700 Subject: [PATCH] Properly recognize syntax errors --- src/debugger.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/debugger.c b/src/debugger.c index 86071a54c..4fa0d0d9b 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -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); }