aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/i386-tdep.h2
2 files changed, 7 insertions, 1 deletions
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 <kettenis@gnu.org>
+
+ * 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 <ezannoni@redhat.com>
* 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)