* c-exp.y (yylex): Give error if unmatched single quote.
authorJim Kingdon <jkingdon@engr.sgi.com>
Fri, 2 Jul 1993 20:04:02 +0000 (20:04 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Fri, 2 Jul 1993 20:04:02 +0000 (20:04 +0000)
gdb/ChangeLog
gdb/c-exp.y

index 20d224e7a073475c5d751a6c4d23f5c99eede009..c0ffc1fd46bd1b64a4a447b190c62f86ae393b24 100644 (file)
@@ -1,5 +1,9 @@
 Fri Jul  2 13:39:48 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
+       * c-exp.y (yylex): Give error if unmatched single quote.
+
+       * configure.in, config/m68k/*delta68*, delta68-nat.c: New port.
+
        * Remove unused STACK_END_ADDR in the following files (in other
        files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
        tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
index 0394ae915728078446a811361ea3e64e6f9e39ef..3756721faf06f8492d5de94a49792fc666d71cec 100644 (file)
@@ -1186,6 +1186,8 @@ yylex ()
          if (namelen > 2)
            {
              lexptr = tokstart + namelen;
+             if (lexptr[-1] != '\'')
+               error ("Unmatched single quote.");
              namelen -= 2;
              tokstart++;
              goto tryname;