* GDB RSP try 'p' before 'g'
@ 2007-10-24 8:30 Robert Bu
2007-10-24 11:54 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Robert Bu @ 2007-10-24 8:30 UTC (permalink / raw)
To: gdb
Hello all,
When doing remote debugging, GDB, version 6.0 and before, tries to
fetch the registers' value by 'g' packet when connected to remote
target. However, GDB version 6.4 and later, tries 'p' packet before 'g'
packet. So if the target supports 'p' packet, GDB uses 'p' packet to
retrieve value of all registers. That may degrate the speed for the poor
connection speed (Serial, parallel or even ethernet) between GDB and the
target.
Does anybody know what is that change for?
Thanks.
Robert.
20071024
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: GDB RSP try 'p' before 'g'
2007-10-24 8:30 GDB RSP try 'p' before 'g' Robert Bu
@ 2007-10-24 11:54 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-10-24 11:54 UTC (permalink / raw)
To: Robert Bu; +Cc: gdb
On Wed, Oct 24, 2007 at 04:29:54PM +0800, Robert Bu wrote:
> Hello all,
>
> When doing remote debugging, GDB, version 6.0 and before, tries to
> fetch the registers' value by 'g' packet when connected to remote
> target. However, GDB version 6.4 and later, tries 'p' packet before 'g'
> packet. So if the target supports 'p' packet, GDB uses 'p' packet to
> retrieve value of all registers. That may degrate the speed for the poor
> connection speed (Serial, parallel or even ethernet) between GDB and the
> target.
> Does anybody know what is that change for?
If you don't want this to happen, I recommend you do not provide the
'p' packet or else use a newer GDB. Earlier versions of GDB did not
support 'p' at all. I believe I made GDB smarter about this around
6.6 or 6.7.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-24 11:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-24 8:30 GDB RSP try 'p' before 'g' Robert Bu
2007-10-24 11:54 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox