mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
Infinite loop bug.
This commit is contained in:
parent
6ac9c4e9a4
commit
4b0f5e25f1
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
if (c != EOF) {
|
||||||
ungetch();
|
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 {..} *"
|
||||||
|
|
Loading…
Add table
Reference in a new issue