This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Prevent runaway (infinite loop) in mips-tdep.c
- From: Daniel Jacobowitz <drow at false dot org>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: cagney <cagney at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Tue, 20 Apr 2004 20:52:57 -0400
- Subject: Re: [RFA] Prevent runaway (infinite loop) in mips-tdep.c
- References: <4085BE65.3000402@redhat.com>
On Wed, Apr 21, 2004 at 12:20:53AM +0000, Michael Snyder wrote:
> Hi Andrew,
>
> This change will prevent the caller(s) of mips_mdebug_frame_id from
> infinite-looping when we get badly lost on the stack frame.
>
> 2004-04-21 Michael Snyder <msnyder@redhat.com>
>
> * mips-tdep.c (mips_mdebug_frame_cache): Call error to prevent
> infinite looping by caller.
> (heuristic_proc_start): Warning() already prefixes "Warning: ".
Since I have some patches to make this "I'm not sure how" case into a
working part of the unwinder, I don't much like this. They got hung up
on the question of how to trust proc_desc's when we might be in the
prologue.
One time where this case occurs is in backtracing from a NULL pointer
dereference, which happens in the GDB testsuite now.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer