2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
[deliverable/binutils-gdb.git] / gdb / f-exp.y
index 7cbfd5ac8f2b4eba41010a82f87c86051b1c1a19..e11687726ef5edf7be767e18da710e7794c357b4 100644 (file)
@@ -924,7 +924,9 @@ yylex ()
   char *tokstart;
   
  retry:
-  
+  prev_lexptr = lexptr;
   tokstart = lexptr;
   
   /* First of all, let us make sure we are not dealing with the 
@@ -1171,5 +1173,8 @@ void
 yyerror (msg)
      char *msg;
 {
+  if (prev_lexptr)
+    lexptr = prev_lexptr;
+
   error ("A %s in expression, near `%s'.", (msg ? msg : "error"), lexptr);
 }
This page took 0.025316 seconds and 4 git commands to generate.