This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: stop reply packets in rsp
On Fri, Jun 13, 2003 at 04:07:53PM -0700, Theodore A. Roth wrote:
> Hi,
>
> The rsp documentation for the 'T' stop reply packet seems a bit
> sparse. Is there a minimal set of registers that must be passed to
> avoid gdb sending a 'g' request while stepping? I assume this is arch
> specific. For the avr it looks like SP and PC are the minimal set.
>
> Does gdb have any preferance as to which reply packets it would like
> to see? My remote targets seem to do ok with using 'T' replies for
> 'C', 'c', 'S', and 's' command packets and 'S' replies otherwise.
In general, if you can supply a 'T', do; then make the tradeoff
(bandwidth vs latency) to supply as many registers as are reasonably
useful. Sometimes GDB fetches more registers, f.ex. to determine
function arguments in the frame.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer