This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Remote response to xmlRegisters?
- From: Pedro Alves <palves at redhat dot com>
- To: Juha Aaltonen <turbopultti at gmail dot com>, gdb-mailing list <gdb at sourceware dot org>
- Date: Thu, 19 Nov 2015 11:24:07 +0000
- Subject: Re: Remote response to xmlRegisters?
- Authentication-results: sourceware.org; auth=none
- References: <CAHR0xd50+-JxYERNC0DGzTPnY11_qFsftKsq1RiUDHqPRGsVBw at mail dot gmail dot com>
We've already discussed this on IRC, but for the benefit of others
finding this in the archives ...
On 11/18/2015 09:06 AM, Juha Aaltonen wrote:
> What should a remote respond to 'qSupported' that has
> 'xmlRegisters=i386' when remote wants to give its target description?
xmlRegisters=i386 merely serves as indication that gdb understands i386
target descriptions. That was something added in order to allow
stubs/gdbserver to be backwards compatible with older gdb's
that _didn't_ understand i386 target descriptions.
> I obviously didn't respond right, because gdb never asked for the
> target description.
What you need to do is to include 'qXfer:features:read+' in the
stub's qSupported reply, and then implement the qXfer:features:read
packet.
Thanks,
Pedro Alves