aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-09-09 15:24:18 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-09-09 15:24:18 +0000
commitb6a40d0cf1b28902c6996c35afd20572f9871f0e (patch)
tree0a3542c1ba573c65bac647f16bb22273011c45bf /gdb/stabsread.c
parent7eb10f9ad149f79dd4505772809df456163b13cb (diff)
downloadfsf-binutils-gdb-b6a40d0cf1b28902c6996c35afd20572f9871f0e.zip
fsf-binutils-gdb-b6a40d0cf1b28902c6996c35afd20572f9871f0e.tar.gz
fsf-binutils-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.c2
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;