This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: mips-tdep.c: Adjust breakpoints in branch delay slots
On Fri, May 25, 2007 at 02:20:55PM +0100, Maciej W. Rozycki wrote:
> > BTW, see mips_single_step_through_delay, which could probably be
> > improved. Doesn't its comment about MIPS16 having no delay slots
> > disagree with this patch? Which is right?
>
> There are both kinds of jumps/branches in MIPS16e:
>
> - jal, jalr, jalx and jr do have a delay slot,
>
> - branches and jalrc and jrc have no delay slot (the two latters are
> MIPS16e additions over "traditional" MIPS16).
You might want to fix mips_single_step_through_delay at some point,
then; it doesn't know about any MIPS16 instructions with delay slots.
--
Daniel Jacobowitz
CodeSourcery