This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: HAVE_I387_REGS
- From: Mark Kettenis <kettenis at chello dot nl>
- To: Kevin Nomura <nomura at netapp dot com>
- Cc: gdb at sources dot redhat dot com
- Date: 20 Aug 2002 19:51:21 +0200
- Subject: Re: HAVE_I387_REGS
- References: <3D619194.8060206@netapp.com>
Kevin Nomura <nomura@netapp.com> writes:
> gdb 5.2.x introduced HAVE_I387_REGS in the configuration for
> i386 targets. I am applying these changes to a target which
> does not dump FP registers to the core file, so this may be
> the first test of this #define not being set.
>
> For this non-FP target, "i registers" complains about registers
> like $SP not being convertible to floating point. From the
> following defines, FP_REGNUM_P instead of giving a definitive
> false when HAVE_I387_REGS is not defined, will just change the
> range of numbers it says are floating point. In particular it
> makes regnos 0-7 look like floating point; those are my GPRs.
Thanks for your report.
Hmm, I can see this is a problem. Mailine doesn't have this problem
since HAVE_I387_REGS is gone now, and all supported i386 targets
include the floating-point registers by default. However I intend to
check in a patch shortly that fixes FP_REGNUM_P, since my intention is
to support targets without floating-point registers in the future
again.
I'll see if I can put the same fix on the 5.2 branch.
Mark