This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: MIPS/Linux: Single-stepping running away
- From: Daniel Jacobowitz <dan at debian dot org>
- To: "Maciej W. Rozycki" <macro at mips dot com>
- Cc: gdb-patches at sources dot redhat dot com, Nigel Stephens <nigel at mips dot com>,"Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Thu, 7 Oct 2004 13:15:16 -0400
- Subject: Re: MIPS/Linux: Single-stepping running away
- References: <Pine.LNX.4.61.0410071758320.19346@perivale.mips.com>
On Thu, Oct 07, 2004 at 06:12:10PM +0100, Maciej W. Rozycki wrote:
> Hello,
>
> I've found two bugs in gdb that lead to single-stepping over branches
> failing under specific conditions -- the code tests register numbers
> instead of their values for a few variants of branches. Here is an
> obvious fix. It applies against the head.
>
> 2004-10-07 Maciej W. Rozycki <macro@mips.com>
>
> * mips-tdep.c (mips32_next_pc): Check the register's contents,
> not its number for BLEZ/BLEZL and BGTZ/BGTZL.
>
> Please apply.
I made the foolish mistake of mixing this fix into some larger MIPS
unwinder changes many months ago, which I've never had time to
disentangle. Sorry 'bout that.
This patch is indeed obvious; I'll check it in for you.
--
Daniel Jacobowitz