[Top] [All Lists]

Re: Single stepping in mips

To: Daniel Jacobowitz <>
Subject: Re: Single stepping in mips
From: Ralf Baechle <>
Date: Wed, 4 Jun 2003 16:32:32 +0200
Cc: "Maciej W. Rozycki" <>, "Krishnakumar. R" <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
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.


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