From: <pa...@us...> - 2003-10-06 21:32:42
|
Update of /cvsroot/fuse-emulator/fuse/debugger In directory sc8-pr-cvs1:/tmp/cvs-serv21214/debugger Modified Files: command.c commandy.y Log Message: Better error recovery: should stop the parser ending up half way through a command after a parse error. Index: command.c =================================================================== RCS file: /cvsroot/fuse-emulator/fuse/debugger/command.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** command.c 13 Jul 2003 10:53:27 -0000 1.11 --- command.c 6 Oct 2003 21:32:36 -0000 1.12 *************** *** 61,66 **** command_ptr = command_buffer; ! /* Parse the command. If there was a problem, skip the rest of this line */ ! if( yyparse() ) command_ptr = "\0"; ui_debugger_update(); --- 61,66 ---- command_ptr = command_buffer; ! /* Parse the command */ ! yyparse(); ui_debugger_update(); Index: commandy.y =================================================================== RCS file: /cvsroot/fuse-emulator/fuse/debugger/commandy.y,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** commandy.y 20 Aug 2003 18:24:01 -0000 1.32 --- commandy.y 6 Oct 2003 21:32:36 -0000 1.33 *************** *** 129,132 **** --- 129,133 ---- input: /* empty */ | command + | error ; |