diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1995-09-09 15:24:18 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1995-09-09 15:24:18 +0000 |
commit | b6a40d0cf1b28902c6996c35afd20572f9871f0e (patch) | |
tree | 0a3542c1ba573c65bac647f16bb22273011c45bf /gdb | |
parent | 7eb10f9ad149f79dd4505772809df456163b13cb (diff) | |
download | gdb-b6a40d0cf1b28902c6996c35afd20572f9871f0e.zip gdb-b6a40d0cf1b28902c6996c35afd20572f9871f0e.tar.gz gdb-b6a40d0cf1b28902c6996c35afd20572f9871f0e.tar.bz2 |
* stabsread.c (read_enum_type): Exit loop for putting pending
enum symbols into the enum type correctly if we had no pending
symbols on entry to read_enum_type.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/stabsread.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cd760cd..9dd7b1e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Sat Sep 9 08:21:52 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * stabsread.c (read_enum_type): Exit loop for putting pending + enum symbols into the enum type correctly if we had no pending + symbols on entry to read_enum_type. + Fri Sep 8 12:57:41 1995 Kung Hsu <kung@mexican.cygnus.com> * inferior.h: Add extern declaration of inferior_environ. diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 167da0b..5221c44 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -3137,7 +3137,7 @@ read_enum_type (pp, type, objfile) that in something like "enum {FOO, LAST_THING=FOO}" we print FOO, not LAST_THING. */ - for (syms = *symlist, n = nsyms - 1; ; syms = syms->next) + for (syms = *symlist, n = nsyms - 1; syms; syms = syms->next) { int last = syms == osyms ? o_nsyms : 0; int j = syms->nsyms; |