This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to get PPC registers
- From: Jim Blandy <jimb at redhat dot com>
- To: Fabian Cenedese <Cenedese at indel dot ch>
- Cc: gdb at sources dot redhat dot com
- Date: 11 Aug 2004 10:00:33 -0500
- Subject: Re: How to get PPC registers
- References: <5.2.0.9.1.20040811093751.01d14b58@NT_SERVER>
Fabian Cenedese <Cenedese@indel.ch> writes:
> The values I return for the registers are just made up to test the
> communication. But they are only filled into the general (and FP)
> registers. What command do I have to use to get the special
> registers like pc, lr etc?
You should try saying 'info all-registers', which will also show you
the floating-point registers. The FP registers follow the
general-purpose registers in the 'g' packet; since there are 32 of
them, and each is eight bytes long, they consume bytes 128 -- 384 of
the 'g' packet. Your sample packet data isn't long enough to reach
the miscellaneous registers.