* [review] Document m68k floating point feature correspondence
@ 2019-10-24 16:36 Tom Tromey (Code Review)
2019-10-25 20:57 ` Luis Machado (Code Review)
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: Tom Tromey (Code Review) @ 2019-10-24 16:36 UTC (permalink / raw)
To: gdb-patches
Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/281
......................................................................
Document m68k floating point feature correspondence
From what I can tell, The m68k floating point target feature should
apparently always be called "org.gnu.gdb.coldfire.fp" -- even when the
primary feature is not "coldfire", because m68k_gdbarch_init only
checks for this feature when assigning register numbers.
However, the floating point registers are expected to match what gdb
thinks are the register sizes for the primary feature. For example,
if the main feature is "coldfire", then the floating point registers
should be 64 bits.
See this note for some an instance of this confusion:
https://lists.gnu.org/archive/html/qemu-devel/2017-06/msg04564.html
This patch documents the oddity.
Let me know what you think. An alternate approach here might be to
make gdb adapt to the register sizes as actually reported. I'm not
sure if this makes sense or not.
gdb/doc/ChangeLog
2019-10-24 Tom Tromey <tromey@adacore.com>
* gdb.texinfo (M68K Features): Document floating-point feature
correspondence.
Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
---
M gdb/doc/ChangeLog
M gdb/doc/gdb.texinfo
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 0d0d905..2b80699 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2019-10-24 Tom Tromey <tromey@adacore.com>
+
+ * gdb.texinfo (M68K Features): Document floating-point feature
+ correspondence.
+
2019-10-23 Tom Tromey <tom@tromey.com>
* Makefile.in (READLINE_DIR): Update.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 1208e4f..1fbf349 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -44346,6 +44346,12 @@
This feature is optional. If present, it should contain registers
@samp{fp0} through @samp{fp7}, @samp{fpcontrol}, @samp{fpstatus} and
@samp{fpiaddr}.
+
+Note that, despite the fact that this feature's name says
+@samp{coldfire}, it is used to describe any floating point registers.
+The size of the registers must match the main m68k flavor; so, for
+example, if the primary feature is reported as @samp{coldfire}, then
+64-bit floating point registers are required.
@end table
@node NDS32 Features
--
Gerrit-Project: binutils-gdb
Gerrit-Branch: master
Gerrit-Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
Gerrit-Change-Number: 281
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Tromey <tromey@sourceware.org>
Gerrit-MessageType: newchange
^ permalink raw reply [flat|nested] 9+ messages in thread
* [review] Document m68k floating point feature correspondence
2019-10-24 16:36 [review] Document m68k floating point feature correspondence Tom Tromey (Code Review)
@ 2019-10-25 20:57 ` Luis Machado (Code Review)
2019-10-25 21:11 ` Tom Tromey (Code Review)
` (4 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Luis Machado (Code Review) @ 2019-10-25 20:57 UTC (permalink / raw)
To: Tom Tromey, gdb-patches
Luis Machado has posted comments on this change.
Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/281
......................................................................
Patch Set 1: Code-Review+1
It is a bit confusing. Was coldfire the only target supporting Floating Point registers at the time?
I happened to noticed that we only have coldfire.core in the XML description. Are we lacking a coldfire.fp XML in GDB? Is it only provided by non-GDB stubs?
In any case, the update looks OK to me.
--
Gerrit-Project: binutils-gdb
Gerrit-Branch: master
Gerrit-Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
Gerrit-Change-Number: 281
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Tromey <tromey@sourceware.org>
Gerrit-Reviewer: Luis Machado <luis.machado@linaro.org>
Gerrit-Comment-Date: Fri, 25 Oct 2019 20:57:08 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
^ permalink raw reply [flat|nested] 9+ messages in thread
* [review] Document m68k floating point feature correspondence
2019-10-24 16:36 [review] Document m68k floating point feature correspondence Tom Tromey (Code Review)
2019-10-25 20:57 ` Luis Machado (Code Review)
@ 2019-10-25 21:11 ` Tom Tromey (Code Review)
2019-11-21 19:45 ` Tom Tromey (Code Review)
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Tom Tromey (Code Review) @ 2019-10-25 21:11 UTC (permalink / raw)
To: gdb-patches; +Cc: Luis Machado
Tom Tromey has posted comments on this change.
Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/281
......................................................................
Patch Set 1:
> Patch Set 1: Code-Review+1
>
> It is a bit confusing. Was coldfire the only target supporting Floating Point registers at the time?
Nope! I don't really know the history here. Internally we discussed
maybe supporting an "m68k.fp" feature, but in the end decided it wasn't
worth the effort, since older versions of gdb would not support this anyway.
> I happened to noticed that we only have coldfire.core in the XML description. Are we lacking a coldfire.fp XML in GDB? Is it only provided by non-GDB stubs?
Yeah, I don't know why gdb doesn't have other XML descriptions for m68k.
In this case the "coldfire.fp" feature is coming from an XML description
that qemu supplies.
--
Gerrit-Project: binutils-gdb
Gerrit-Branch: master
Gerrit-Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
Gerrit-Change-Number: 281
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Tromey <tromey@sourceware.org>
Gerrit-Reviewer: Luis Machado <luis.machado@linaro.org>
Gerrit-Reviewer: Tom Tromey <tromey@sourceware.org>
Gerrit-Comment-Date: Fri, 25 Oct 2019 21:11:13 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
^ permalink raw reply [flat|nested] 9+ messages in thread
* [review] Document m68k floating point feature correspondence
2019-10-24 16:36 [review] Document m68k floating point feature correspondence Tom Tromey (Code Review)
2019-10-25 20:57 ` Luis Machado (Code Review)
2019-10-25 21:11 ` Tom Tromey (Code Review)
@ 2019-11-21 19:45 ` Tom Tromey (Code Review)
2019-12-04 22:22 ` Tom Tromey
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Tom Tromey (Code Review) @ 2019-11-21 19:45 UTC (permalink / raw)
To: gdb-patches; +Cc: Luis Machado
Tom Tromey has posted comments on this change.
Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/281
......................................................................
Patch Set 1:
Ping. This is a minor documentation patch, probably got lost somewhere
in the gerrit noise.
--
Gerrit-Project: binutils-gdb
Gerrit-Branch: master
Gerrit-Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
Gerrit-Change-Number: 281
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Tromey <tromey@sourceware.org>
Gerrit-Reviewer: Luis Machado <luis.machado@linaro.org>
Gerrit-Reviewer: Tom Tromey <tromey@sourceware.org>
Gerrit-Comment-Date: Thu, 21 Nov 2019 19:45:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [review] Document m68k floating point feature correspondence
2019-10-24 16:36 [review] Document m68k floating point feature correspondence Tom Tromey (Code Review)
` (2 preceding siblings ...)
2019-11-21 19:45 ` Tom Tromey (Code Review)
@ 2019-12-04 22:22 ` Tom Tromey
2020-01-24 18:25 ` Ping (Was: [review] Document m68k floating point feature correspondence) Tom Tromey
2020-01-26 21:51 ` [pushed] Document m68k floating point feature correspondence Sourceware to Gerrit sync (Code Review)
2020-01-26 23:39 ` Sourceware to Gerrit sync (Code Review)
5 siblings, 1 reply; 9+ messages in thread
From: Tom Tromey @ 2019-12-04 22:22 UTC (permalink / raw)
To: gdb-patches
>>>>> "Tom" == Tom Tromey (Code Review) <gerrit@gnutoolchain-gerrit.osci.io> writes:
Tom> Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/281
Tom> ......................................................................
Tom> Document m68k floating point feature correspondence
...
Tom> gdb/doc/ChangeLog
Tom> 2019-10-24 Tom Tromey <tromey@adacore.com>
Tom> * gdb.texinfo (M68K Features): Document floating-point feature
Tom> correspondence.
Ping.
Tom
^ permalink raw reply [flat|nested] 9+ messages in thread
* Ping (Was: [review] Document m68k floating point feature correspondence)
2019-12-04 22:22 ` Tom Tromey
@ 2020-01-24 18:25 ` Tom Tromey
2020-01-24 21:22 ` Eli Zaretskii
0 siblings, 1 reply; 9+ messages in thread
From: Tom Tromey @ 2020-01-24 18:25 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
Tom> * gdb.texinfo (M68K Features): Document floating-point feature
Tom> correspondence.
Tom> Ping.
Ping again.
Tom
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Ping (Was: [review] Document m68k floating point feature correspondence)
2020-01-24 18:25 ` Ping (Was: [review] Document m68k floating point feature correspondence) Tom Tromey
@ 2020-01-24 21:22 ` Eli Zaretskii
0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2020-01-24 21:22 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
> From: Tom Tromey <tom@tromey.com>
> Cc: gdb-patches@sourceware.org
> Date: Fri, 24 Jan 2020 11:21:30 -0700
>
> >>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
>
> Tom> * gdb.texinfo (M68K Features): Document floating-point feature
> Tom> correspondence.
>
> Tom> Ping.
>
> Ping again.
Sorry. The patch is OK.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [pushed] Document m68k floating point feature correspondence
2019-10-24 16:36 [review] Document m68k floating point feature correspondence Tom Tromey (Code Review)
` (3 preceding siblings ...)
2019-12-04 22:22 ` Tom Tromey
@ 2020-01-26 21:51 ` Sourceware to Gerrit sync (Code Review)
2020-01-26 23:39 ` Sourceware to Gerrit sync (Code Review)
5 siblings, 0 replies; 9+ messages in thread
From: Sourceware to Gerrit sync (Code Review) @ 2020-01-26 21:51 UTC (permalink / raw)
To: Tom Tromey, Luis Machado, gdb-patches
The original change was created by Tom Tromey.
Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/281
......................................................................
Document m68k floating point feature correspondence
From what I can tell, The m68k floating point target feature should
apparently always be called "org.gnu.gdb.coldfire.fp" -- even when the
primary feature is not "coldfire", because m68k_gdbarch_init only
checks for this feature when assigning register numbers.
However, the floating point registers are expected to match what gdb
thinks are the register sizes for the primary feature. For example,
if the main feature is "coldfire", then the floating point registers
should be 64 bits.
See this note for some an instance of this confusion:
https://lists.gnu.org/archive/html/qemu-devel/2017-06/msg04564.html
This patch documents the oddity.
Let me know what you think. An alternate approach here might be to
make gdb adapt to the register sizes as actually reported. I'm not
sure if this makes sense or not.
gdb/doc/ChangeLog
2020-01-26 Tom Tromey <tromey@adacore.com>
* gdb.texinfo (M68K Features): Document floating-point feature
correspondence.
Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
---
M gdb/doc/ChangeLog
M gdb/doc/gdb.texinfo
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 139951f..4900480 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-26 Tom Tromey <tromey@adacore.com>
+
+ * gdb.texinfo (M68K Features): Document floating-point feature
+ correspondence.
+
2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* gdb.texinfo (Attach): Document the new option and the
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 2a38b03..a2866a2 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -45230,6 +45230,12 @@
This feature is optional. If present, it should contain registers
@samp{fp0} through @samp{fp7}, @samp{fpcontrol}, @samp{fpstatus} and
@samp{fpiaddr}.
+
+Note that, despite the fact that this feature's name says
+@samp{coldfire}, it is used to describe any floating point registers.
+The size of the registers must match the main m68k flavor; so, for
+example, if the primary feature is reported as @samp{coldfire}, then
+64-bit floating point registers are required.
@end table
@node NDS32 Features
--
Gerrit-Project: binutils-gdb
Gerrit-Branch: master
Gerrit-Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
Gerrit-Change-Number: 281
Gerrit-PatchSet: 2
Gerrit-Owner: Tom Tromey <tromey@sourceware.org>
Gerrit-Reviewer: Luis Machado <luis.machado@linaro.org>
Gerrit-Reviewer: Tom Tromey <tromey@sourceware.org>
Gerrit-MessageType: newpatchset
^ permalink raw reply [flat|nested] 9+ messages in thread
* [pushed] Document m68k floating point feature correspondence
2019-10-24 16:36 [review] Document m68k floating point feature correspondence Tom Tromey (Code Review)
` (4 preceding siblings ...)
2020-01-26 21:51 ` [pushed] Document m68k floating point feature correspondence Sourceware to Gerrit sync (Code Review)
@ 2020-01-26 23:39 ` Sourceware to Gerrit sync (Code Review)
5 siblings, 0 replies; 9+ messages in thread
From: Sourceware to Gerrit sync (Code Review) @ 2020-01-26 23:39 UTC (permalink / raw)
To: Tom Tromey, gdb-patches; +Cc: Luis Machado
Sourceware to Gerrit sync has submitted this change.
Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/281
......................................................................
Document m68k floating point feature correspondence
From what I can tell, The m68k floating point target feature should
apparently always be called "org.gnu.gdb.coldfire.fp" -- even when the
primary feature is not "coldfire", because m68k_gdbarch_init only
checks for this feature when assigning register numbers.
However, the floating point registers are expected to match what gdb
thinks are the register sizes for the primary feature. For example,
if the main feature is "coldfire", then the floating point registers
should be 64 bits.
See this note for some an instance of this confusion:
https://lists.gnu.org/archive/html/qemu-devel/2017-06/msg04564.html
This patch documents the oddity.
Let me know what you think. An alternate approach here might be to
make gdb adapt to the register sizes as actually reported. I'm not
sure if this makes sense or not.
gdb/doc/ChangeLog
2020-01-26 Tom Tromey <tromey@adacore.com>
* gdb.texinfo (M68K Features): Document floating-point feature
correspondence.
Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
---
M gdb/doc/ChangeLog
M gdb/doc/gdb.texinfo
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 139951f..4900480 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-26 Tom Tromey <tromey@adacore.com>
+
+ * gdb.texinfo (M68K Features): Document floating-point feature
+ correspondence.
+
2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* gdb.texinfo (Attach): Document the new option and the
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 2a38b03..a2866a2 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -45230,6 +45230,12 @@
This feature is optional. If present, it should contain registers
@samp{fp0} through @samp{fp7}, @samp{fpcontrol}, @samp{fpstatus} and
@samp{fpiaddr}.
+
+Note that, despite the fact that this feature's name says
+@samp{coldfire}, it is used to describe any floating point registers.
+The size of the registers must match the main m68k flavor; so, for
+example, if the primary feature is reported as @samp{coldfire}, then
+64-bit floating point registers are required.
@end table
@node NDS32 Features
--
Gerrit-Project: binutils-gdb
Gerrit-Branch: master
Gerrit-Change-Id: I4cd86acbe3449a29ce38327524c508c206b25b8f
Gerrit-Change-Number: 281
Gerrit-PatchSet: 2
Gerrit-Owner: Tom Tromey <tromey@sourceware.org>
Gerrit-Reviewer: Luis Machado <luis.machado@linaro.org>
Gerrit-Reviewer: Tom Tromey <tromey@sourceware.org>
Gerrit-MessageType: merged
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-01-26 21:51 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 16:36 [review] Document m68k floating point feature correspondence Tom Tromey (Code Review)
2019-10-25 20:57 ` Luis Machado (Code Review)
2019-10-25 21:11 ` Tom Tromey (Code Review)
2019-11-21 19:45 ` Tom Tromey (Code Review)
2019-12-04 22:22 ` Tom Tromey
2020-01-24 18:25 ` Ping (Was: [review] Document m68k floating point feature correspondence) Tom Tromey
2020-01-24 21:22 ` Eli Zaretskii
2020-01-26 21:51 ` [pushed] Document m68k floating point feature correspondence Sourceware to Gerrit sync (Code Review)
2020-01-26 23:39 ` Sourceware to Gerrit sync (Code Review)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox