This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML...
- From: Pedro Alves <palves at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 04 Jan 2013 21:07:01 +0000
- Subject: Re: [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML...
- References: <1355744327-19557-1-git-send-email-brobecker@adacore.com>
On 12/17/2012 11:38 AM, Joel Brobecker wrote:
> ... back to GDB. The transfer occurs when GDB sends the
> 'qXfer:features:read:target.xml' packet. This allows us to make
> sure that GDB and GDBserver use the same register numbering.
> This will be important on Lynx 178, where GDB selects the rs6000:6000
> architecture by default instead of the powerpc:common architecture.
>
> gdb/gdbserver/ChangeLog:
>
> * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
>
> Tested on ppc-lynx5. OK to commit?
Sure.
Note however, that xml descriptions can also send
the OSABI. So if we had new xml descriptions that
did something like:
<!DOCTYPE target SYSTEM "gdb-target.dtd">
<target>
<osabi>Lynx178 (or whatever it is)</osabi>
<xi:include href="..."/>
</target>
and send _that_, then GDB sets the OSABI from
the target, even if you attach without a binary.
This is the modern version of the default OSABI
setting in the end of gdb/configure.tgt, which
I now notice doesn't have a Lynx setting, so
ignore I mentioned it. :-)
--
Pedro Alves