From b6a40d0cf1b28902c6996c35afd20572f9871f0e Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Sat, 9 Sep 1995 15:24:18 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/stabsread.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cd760cd2ade..9dd7b1e818e 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 * inferior.h: Add extern declaration of inferior_environ. diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 167da0b57ad..5221c44b186 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; -- 2.30.2