Browse Source

* c-exp.y (yylex): Fix a bug in template scanning.

gdb-4_18-branch
Kung Hsu 32 years ago
parent
commit
e38e7f47a8
  1. 4
      gdb/ChangeLog
  2. 7
      gdb/c-exp.y

4
gdb/ChangeLog

@ -1,3 +1,7 @@
Tue Nov 15 16:18:52 1994 Kung Hsu (kung@mexican.cygnus.com)
* c-exp.y (yylex): Fix a bug in template scanning.
Tue Nov 15 14:25:47 1994 Stan Shebs (shebs@andros.cygnus.com)
* i386-stub.c, m68k-stub.c, sparc-stub.c, sparcl-stub.c: Mask out

7
gdb/c-exp.y

@ -1366,7 +1366,12 @@ yylex ()
|| (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '<');)
{
if (c == '<')
while (tokstart[++namelen] != '>');
{
int i = namelen;
while (tokstart[++i] && tokstart[i] != '>');
if (tokstart[i] == '>')
namelen = i;
}
c = tokstart[++namelen];
}

Loading…
Cancel
Save