* stabsread.c (read_enum_type): Exit loop for putting pending
authorPeter Schauer <Peter.Schauer@mytum.de>
Sat, 9 Sep 1995 15:24:18 +0000 (15:24 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Sat, 9 Sep 1995 15:24:18 +0000 (15:24 +0000)
enum symbols into the enum type correctly if we had no pending
symbols on entry to read_enum_type.

gdb/ChangeLog
gdb/stabsread.c

index cd760cd..9dd7b1e 100644 (file)
@@ -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.
index 167da0b..5221c44 100644 (file)
@@ -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;