This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MIPS/Linux: Single-stepping running away


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]