This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]