aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-umax.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-05-20 06:03:50 +0000
committerJohn Gilmore <gnu@cygnus>1992-05-20 06:03:50 +0000
commit6ad6ef422c2eadede6584a3c526f64a8eaf03944 (patch)
tree326f495a181c59349f1b1d0d008c22e9c637ba7e /gdb/tm-umax.h
parent21a6705a60bb586a06e0ceb698c8e0f49ae4d867 (diff)
downloadgdb-6ad6ef422c2eadede6584a3c526f64a8eaf03944.zip
gdb-6ad6ef422c2eadede6584a3c526f64a8eaf03944.tar.gz
gdb-6ad6ef422c2eadede6584a3c526f64a8eaf03944.tar.bz2
88K changes inspired by Ted Lemon (uunet!lupine!mellon)
* tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros, since they define the target, not the host. * m88k-pinsn.c: Fix typo. Patches by Paul Eggert <eggert@twinsun.com>. * valarith.c (value_zerop): -0.0 is still zero. * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
Diffstat (limited to 'gdb/tm-umax.h')
-rw-r--r--gdb/tm-umax.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/tm-umax.h b/gdb/tm-umax.h
index 08f7e95..0e74b92 100644
--- a/gdb/tm-umax.h
+++ b/gdb/tm-umax.h
@@ -113,6 +113,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
to be actual register numbers as far as the user is concerned
but do serve to get the desired values when passed to read_register. */
+#define R0_REGNUM 0 /* General register 0 */
#define FP0_REGNUM 8 /* Floating point register 0 */
#define SP_REGNUM 16 /* Contains address of top of stack */
#define AP_REGNUM FP_REGNUM
@@ -124,7 +125,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Total amount of space needed to store our copies of the machine's
register state, the array `registers'. */
-#define REGISTER_BYTES ((NUM_REGS - 4) * sizeof (int) + 4 * sizeof (double))
+#define REGISTER_BYTES \
+ ((NUM_REGS - 4) * REGISTER_RAW_SIZE(R0_REGNUM) \
+ + 4 * REGISTER_RAW_SIZE(LP0_REGNUM))
/* Index within `registers' of the first byte of the space for
register N. */