aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>1998-01-12 23:41:59 +0000
committerMichael Snyder <msnyder@vmware.com>1998-01-12 23:41:59 +0000
commit8f05bc95573c4233dc1c011f253dd35fc05a286b (patch)
tree3d49318faf046ad6477b903beb1ef60468fbc878 /gdb/config
parentef40809d239ca69339d46328f1079bd5363eb4a3 (diff)
downloadgdb-8f05bc95573c4233dc1c011f253dd35fc05a286b.zip
gdb-8f05bc95573c4233dc1c011f253dd35fc05a286b.tar.gz
gdb-8f05bc95573c4233dc1c011f253dd35fc05a286b.tar.bz2
Mon Jan 12 11:46:51 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
* config/m68k/tm-m68k.h (REGISTER_VIRTUAL_TYPE): make A0 thru A7 default to void pointer type (so that their default radix is hex).
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/m68k/tm-m68k.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h
index e21fd28..ec7f4e8 100644
--- a/gdb/config/m68k/tm-m68k.h
+++ b/gdb/config/m68k/tm-m68k.h
@@ -176,15 +176,18 @@ extern void m68k_find_saved_regs PARAMS ((struct frame_info *, struct frame_save
floatformat_from_double (&floatformat_m68881_ext, &dbl_tmp_val, (TO)); \
}
-/* Return the GDB type object for the "standard" data type
- of data in register N. */
-/* Note, for registers which contain addresses return
- pointer to void, not pointer to char, because we don't
- want to attempt to print the string after printing the address. */
+/* Return the GDB type object for the "standard" data type of data
+ in register N. This should be int for D0-D7, double for FP0-FP7,
+ and void pointer for all others (A0-A7, PC, SR, FPCONTROL etc).
+ Note, for registers which contain addresses return pointer to void,
+ not pointer to char, because we don't want to attempt to print
+ the string after printing the address. */
+
#define REGISTER_VIRTUAL_TYPE(N) \
- (((unsigned)(N) - FP0_REGNUM) < 8 ? builtin_type_double : \
- (N) == PC_REGNUM || (N) == FP_REGNUM || (N) == SP_REGNUM ? \
- lookup_pointer_type (builtin_type_void) : builtin_type_int)
+ ((unsigned) (N) >= FPC_REGNUM ? lookup_pointer_type (builtin_type_void) : \
+ (unsigned) (N) >= FP0_REGNUM ? builtin_type_double : \
+ (unsigned) (N) >= A0_REGNUM ? lookup_pointer_type (builtin_type_void) : \
+ builtin_type_int)
/* Initializer for an array of names of registers.
Entries beyond the first NUM_REGS are ignored. */