This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: ARM: where are special registers?
On Tue, Jul 08, 2008 at 05:38:55PM +0400, Dmitry Smirnov wrote:
> I've found in ch.11.1 at http://sourceware.org/gdb/current/onlinedocs/gdbint_11.html#SEC89 :
> <quote>
> A description may come from a user specified file (XML), the remote `qXfer:features:read' packet (also XML), or from any custom to_read_description routine in the target vector. For instance, the remote target supports guessing whether a MIPS target is 32-bit or 64-bit based on the size of the `g' packet.
> <quote/>
>
> Is there any example of this XML?
There are several in the manual, and in the GDB source directory
(gdb/features/).
> What remote stub shall respond to "qXfer:features:read"? Just this XML content?
> Am I right that before GDB asks for "qXfer:features:read", I shall implement "qSupported" handling in a stub with this "qXfer:features:read" as a response?
Take a look at the rmeote protocol section of the manual, which is
referenced from that chapter; it explains the details.
--
Daniel Jacobowitz
CodeSourcery