Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA 2/2] Make x86-lynx GDBserver pass XML register map to GDB.
  2012-12-17 11:38 [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML Joel Brobecker
@ 2012-12-17 11:38 ` Joel Brobecker
  2013-01-04 21:07   ` Pedro Alves
  2013-01-04 21:07 ` [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML Pedro Alves
  1 sibling, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2012-12-17 11:38 UTC (permalink / raw)
  To: gdb-patches; +Cc: Joel Brobecker

This is not strictly needed, since both GDB and GDBserver seem
to agree on the register numbering without this.  But this allows
us to make sure that this is always going to be the case.

gdb/gdbserver/ChangeLog:

        * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.

Tested on x86-lynx5.  OK to commit?

Thanks,
-- 
Joel

---
 gdb/gdbserver/configure.srv |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv
index cb7cfee..cdb5487 100644
--- a/gdb/gdbserver/configure.srv
+++ b/gdb/gdbserver/configure.srv
@@ -105,6 +105,9 @@ case "${target}" in
 			;;
   i[34567]86-*-lynxos*)	srv_regobj="i386.o"
 			srv_tgtobj="lynx-low.o lynx-i386-low.o"
+			srv_xmlfiles="i386/i386.xml"
+			srv_xmlfiles="${srv_xmlfiles} i386/32bit-core.xml"
+			srv_xmlfiles="${srv_xmlfiles} i386/32bit-sse.xml"
 			srv_lynxos=yes
 			;;
   i[34567]86-*-mingw32ce*)
-- 
1.7.0.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML...
@ 2012-12-17 11:38 Joel Brobecker
  2012-12-17 11:38 ` [RFA 2/2] Make x86-lynx GDBserver pass XML register map to GDB Joel Brobecker
  2013-01-04 21:07 ` [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML Pedro Alves
  0 siblings, 2 replies; 6+ messages in thread
From: Joel Brobecker @ 2012-12-17 11:38 UTC (permalink / raw)
  To: gdb-patches; +Cc: Joel Brobecker

... 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?

Thanks,
-- 
Joel

---
 gdb/gdbserver/configure.srv |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv
index d1e04a9..cb7cfee 100644
--- a/gdb/gdbserver/configure.srv
+++ b/gdb/gdbserver/configure.srv
@@ -229,6 +229,9 @@ case "${target}" in
 			;;
   powerpc-*-lynxos*)	srv_regobj="powerpc-32.o"
 			srv_tgtobj="lynx-low.o lynx-ppc-low.o"
+			srv_xmlfiles="rs6000/powerpc-32.xml"
+			srv_xmlfiles="${srv_xmlfiles} rs6000/power-core.xml"
+			srv_xmlfiles="${srv_xmlfiles} rs6000/power-fpu.xml"
 			srv_lynxos=yes
 			;;
   s390*-*-linux*)	srv_regobj="s390-linux32.o"
-- 
1.7.0.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFA 2/2] Make x86-lynx GDBserver pass XML register map to GDB.
  2012-12-17 11:38 ` [RFA 2/2] Make x86-lynx GDBserver pass XML register map to GDB Joel Brobecker
@ 2013-01-04 21:07   ` Pedro Alves
  2013-01-07 11:54     ` Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Pedro Alves @ 2013-01-04 21:07 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

On 12/17/2012 11:38 AM, Joel Brobecker wrote:
> This is not strictly needed, since both GDB and GDBserver seem
> to agree on the register numbering without this.  But this allows
> us to make sure that this is always going to be the case.
> 
> gdb/gdbserver/ChangeLog:
> 
>         * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
> 
> Tested on x86-lynx5.  OK to commit?

Sure, thanks.

-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML...
  2012-12-17 11:38 [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML Joel Brobecker
  2012-12-17 11:38 ` [RFA 2/2] Make x86-lynx GDBserver pass XML register map to GDB Joel Brobecker
@ 2013-01-04 21:07 ` Pedro Alves
  2013-01-07 11:54   ` Joel Brobecker
  1 sibling, 1 reply; 6+ messages in thread
From: Pedro Alves @ 2013-01-04 21:07 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFA 2/2] Make x86-lynx GDBserver pass XML register map to GDB.
  2013-01-04 21:07   ` Pedro Alves
@ 2013-01-07 11:54     ` Joel Brobecker
  0 siblings, 0 replies; 6+ messages in thread
From: Joel Brobecker @ 2013-01-07 11:54 UTC (permalink / raw)
  To: gdb-patches

> > gdb/gdbserver/ChangeLog:
> > 
> >         * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.

> Sure, thanks.

Checked in as well.

-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML...
  2013-01-04 21:07 ` [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML Pedro Alves
@ 2013-01-07 11:54   ` Joel Brobecker
  0 siblings, 0 replies; 6+ messages in thread
From: Joel Brobecker @ 2013-01-07 11:54 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches

> > gdb/gdbserver/ChangeLog:
> > 
> >         * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
> 
> Sure.

Thank you! Checked in.

> Note however, that xml descriptions can also send
> the OSABI.  So if we had new xml descriptions that
> did something like:
[...]
> I now notice doesn't have a Lynx setting, so
> ignore I mentioned it.  :-)

/me loves ignoring interesting bits like these :-).

Thanks, Pedro.
-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-07 11:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-17 11:38 [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML Joel Brobecker
2012-12-17 11:38 ` [RFA 2/2] Make x86-lynx GDBserver pass XML register map to GDB Joel Brobecker
2013-01-04 21:07   ` Pedro Alves
2013-01-07 11:54     ` Joel Brobecker
2013-01-04 21:07 ` [RFA 1/2] Allow powerpc-*-lynxos* GDBserver to send register map via XML Pedro Alves
2013-01-07 11:54   ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox