From e5451d58f4028184281599ce99ce387c3705cad5 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 20 Aug 2002 17:59:50 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/i386-tdep.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5027020a498..fedfe81fbda 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 8f5c13ca319..30128d9341a 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) -- 2.30.2