all repos — mgba @ 5465543accc2b2e335f351b9ee1099c3826ba1f7

mGBA Game Boy Advance Emulator

Properly recognize syntax errors
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Apr 2013 01:27:05 -0700
commit

5465543accc2b2e335f351b9ee1099c3826ba1f7

parent

0180ee090ea84dece42c8c365ebcbbbdd8a9d5ed

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/debugger.csrc/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); }