This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: buglet in binutils/debug.c
- To: aaron at frye dot com
- Subject: Re: buglet in binutils/debug.c
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Sat, 17 Jun 2000 15:11:45 -0700
- CC: binutils at sourceware dot cygnus dot com
Hi Aaron,
: --- 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.
You are right, this is not really the right way to solve this
problem. You ought to track down just why the list is getting
corrupted. (Even with the patch above applied you will probably find
that you still run into other probekms, all due to the underlying
cause of the list corruption).
Hence I cannot accept this patch. Sorry.
Cheers
Nick