buglet in binutils/debug.c

Aaron J. Grier aaron@frye.com
Fri Jun 16 17:41:00 GMT 2000


--- binutils-2.9.5.0.37/binutils/debug.c.orig   Fri Jun 16 17:18:56 2000
+++ binutils-2.9.5.0.37/binutils/debug.c        Fri Jun 16 17:28:16 2000
@@ -2198,6 +2198,12 @@
                   debug_get_type_name (handle, type));
          return NULL;
        }
+      if (l->next == l)
+        {
+          fprintf (stderr,
+                   _("debug_get_real_type: l->next == l, I'm in a loop\n"));
+          break;
+        }
     }
 
   rl.next = list;

this is probably not an optimal solution, but I was getting into an
endless loop when running m68k-rtems-objdump --debugging --disassemble
and needed a quick fix.

-- 
  Aaron J. Grier   |   Frye Electronics, Tigard, OR   |   aaron@frye.com


More information about the Binutils mailing list