This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
GDB RSP try 'p' before 'g'
- From: "Robert Bu" <robert dot bu at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 24 Oct 2007 16:29:54 +0800
- Subject: GDB RSP try 'p' before 'g'
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