MIPS/Linux: Single-stepping running away

Daniel Jacobowitz dan@debian.org
Thu Oct 7 17:15:00 GMT 2004


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



More information about the Gdb-patches mailing list