linux-mips
[Top] [All Lists]

Re: Single stepping in mips

To: Daniel Jacobowitz <dan@debian.org>
Subject: Re: Single stepping in mips
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 4 Jun 2003 16:32:32 +0200
Cc: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>, "Krishnakumar. R" <krishnakumar@naturesoft.net>, linux-mips@linux-mips.org
In-reply-to: <20030604142548.GA19282@nevyn.them.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20030604055319.GB8778@linux-mips.org> <Pine.GSO.3.96.1030604161038.18707C-100000@delta.ds2.pg.gda.pl> <20030604142548.GA19282@nevyn.them.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Wed, Jun 04, 2003 at 10:25:48AM -0400, Daniel Jacobowitz wrote:

> >  In a more finegrained but also more complicated example, you probably
> > want to insert a breakpoint in the delay slot first and at the second step
> > evaluate the branch's condition and put a breakpoint at the next
> > instruction to be executed.  I'm not sure if the current version of gdb
> > does the first step, but it inserts a single breakpoint in the second one
> > only.  For branch likely instructions adjust the two steps as necessary. 
> 
> Does that actually work reliably across MIPS processors?  I don't
> believe that it will.  I suppose you could re-execute the branch to get
> the delay slot executed...

It should.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>