This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Arm Register Transmission
- From: Torsten Mohr <tmohr at s dot netic dot de>
- To: gdb at sources dot redhat dot com
- Date: Wed, 12 Feb 2003 04:56:25 +0100
- Subject: Re: Arm Register Transmission
- References: <3e47859f.27b.0@esatclear.ie>
Hi,
i wrote a GDB remote protocol server for Linux. It can be downloaded
at http://www.s.netic.de/tmohr/pppcb-0.5.0.tar.bz2
In it there is an example of how to write out all the registers.
This is copied out of some GDB sources:
/* Initial value: Register names used in ARM's ISA documentation.
static char * arm_register_name_strings[] =
{"r0", "r1", "r2", "r3", 0 1 2 3
"r4", "r5", "r6", "r7", 4 5 6 7
"r8", "r9", "r10", "r11", 8 9 10 11
"r12", "sp", "lr", "pc", 12 13 14 15
"f0", "f1", "f2", "f3", 16 17 18 19
"f4", "f5", "f6", "f7", 20 21 22 23
"fps", "cpsr" }; 24 25 */
/* Number of bytes of storage in the actual machine representation for
register N. All registers are 4 bytes, except fp0 - fp7, which are
12 bytes in length. */
Best regards,
Torsten.