1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +02:00

Infinite loop bug.

This commit is contained in:
Alain Magloire 2003-05-30 18:40:55 +00:00
parent 6ac9c4e9a4
commit 4b0f5e25f1

View file

@ -251,7 +251,9 @@ public class GDBTypeParser {
while (isCIdentifierPart((c = getch())) && c != EOF) { while (isCIdentifierPart((c = getch())) && c != EOF) {
token += (char) c; token += (char) c;
} }
ungetch(); if (c != EOF) {
ungetch();
}
tokenType = NAME; tokenType = NAME;
} else if (c == '{') { } else if (c == '{') {
// Swallow gdb sends things like "struct foobar {..} *" // Swallow gdb sends things like "struct foobar {..} *"