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/stabsread.c | |
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/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |