aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-08-20 17:59:50 +0000
committerMark Kettenis <kettenis@gnu.org>2002-08-20 17:59:50 +0000
commite5451d58f4028184281599ce99ce387c3705cad5 (patch)
treea494aabf95cd83f3765da7efe548e45c9e69bfe7 /gdb/i386-tdep.h
parente1b73efd9984508e446ab566738e5bc04957f088 (diff)
downloadgdb-e5451d58f4028184281599ce99ce387c3705cad5.zip
gdb-e5451d58f4028184281599ce99ce387c3705cad5.tar.gz
gdb-e5451d58f4028184281599ce99ce387c3705cad5.tar.bz2
* 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.
Diffstat (limited to 'gdb/i386-tdep.h')
-rw-r--r--gdb/i386-tdep.h2
1 files changed, 1 insertions, 1 deletions
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)