From 8f05bc95573c4233dc1c011f253dd35fc05a286b Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 12 Jan 1998 23:41:59 +0000 Subject: [PATCH] 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). --- gdb/ChangeLog | 5 ++++- gdb/config/m68k/tm-m68k.h | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 17704ab860..f5cc1c3b91 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,7 +1,10 @@ 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). + * symtab.c: move rbreak_command from no_class to class_breakpoint - so it will be listed under "help breakpoints". + so it will be listed under "help breakpoints". Sat Jan 10 14:58:04 1998 Stan Shebs diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h index e21fd288f8..ec7f4e8b70 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. */ -- 2.34.1