Defer register reading from remote target until needed?

Orjan Friberg orjan.friberg@axis.com
Fri Jun 4 08:52:00 GMT 2004


Michael Snyder wrote:
> 
> It's supposed to work that way already.  Either something's broken, or
> some register other than the ones you named *is* needed.  The 'g' pkt
> should only go out if gdb needs the value of a register that it doesn't
> already have.
> 
> This can sometimes happen 'indirectly', eg. if you try to set a 
> register, gdb may try to read it first.
> 
> Try setting a breakpoint in remote_fetch_registers, then go up
> the stack and see what register gdb is trying to read.

Ah; it's because we need the subroutine return pointer when unwinding 
the pc.  Thanks.


-- 
Orjan Friberg
Axis Communications



More information about the Gdb-patches mailing list