]> Git Repo - binutils.git/commitdiff
* stabsread.c (read_enum_type): Exit loop for putting pending
authorPeter Schauer <[email protected]>
Sat, 9 Sep 1995 15:24:18 +0000 (15:24 +0000)
committerPeter Schauer <[email protected]>
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 cd760cd2ade0ecc9ac7a790cdf623b8b12eca4b9..9dd7b1e818ecdcfe5e8df68ea37488c7d21dc12d 100644 (file)
@@ -1,3 +1,9 @@
+Sat Sep  9 08:21:52 1995  Peter Schauer  ([email protected])
+
+       * 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  <[email protected]>
 
        * inferior.h: Add extern declaration of inferior_environ.
index 167da0b57ad130a2ba5846f6a1a23aa4a72a60f3..5221c44b18604b75c2cf1893c44ef8a85e9d9c44 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;
This page took 0.042168 seconds and 4 git commands to generate.