This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB RSP try 'p' before 'g'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]