This is the mail archive of the gdb@sources.redhat.com 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: HAVE_I387_REGS


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


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