From: Mark Kettenis Date: Tue, 20 Aug 2002 17:59:50 +0000 (+0000) Subject: * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly X-Git-Tag: drow-cplus-branchpoint~665 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5451d58f4028184281599ce99ce387c3705cad5;p=external%2Fbinutils.git * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly flag the general-purpose registers as floating-point on targets that don't support the floating-point registers. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5027020..fedfe81 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-08-20 Mark Kettenis + + * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly + flag the general-purpose registers as floating-point on targets + that don't support the floating-point registers. + 2002-08-20 Elena Zannoni * rs6000-tdep.c (altivec_register_p): Delete. diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index 8f5c13c..30128d9 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -114,7 +114,7 @@ struct gdbarch_tdep #define FOP_REGNUM (FPC_REGNUM + 7) /* Return non-zero if N corresponds to a FPU data registers. */ -#define FP_REGNUM_P(n) (FP0_REGNUM <= (n) && (n) < FPC_REGNUM) +#define FP_REGNUM_P(n) (FP0_REGNUM && FP0_REGNUM <= (n) && (n) < FPC_REGNUM) /* Return non-zero if N corresponds to a FPU control register. */ #define FPC_REGNUM_P(n) (FPC_REGNUM <= (n) && (n) < XMM0_REGNUM)