Unable to step over (n and ni) on mipsel-linux...

Daniel Jacobowitz drow@false.org
Mon Aug 23 19:22:00 GMT 2004


On Mon, Aug 23, 2004 at 11:58:07AM -0700, David Daney wrote:
> For next and nexti it does not need to analyse the stack frames.
> 
> I have half a mind to hack up mips-tdep.c:mips32_next_pc so that it
> returns the address following the jal/jalr if step_over_calls ==
> STEP_OVER_ALL or some such thing.

IMO, this is reasonable on targets where we're using software single
step anyway.  It's also reasonable if trust_readonly_sections is true.
Would anyone object to an optional gdbarch method that took a PC, and
returned the return address of the call represented by that PC, if the
instruction is a call?

-- 
Daniel Jacobowitz



More information about the Gdb mailing list