2003-05-08 Andrew Cagney <cagney@redhat.com>

* gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
	* gdbarch.h: Re-generate.
	* defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
	(legacy_max_register_virtual_size): Delete declaration.
	* infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
	* d10v-tdep.c (d10v_print_registers_info): Ditto.
	* tracepoint.c (memrange_sortmerge): Ditto.
	* sparc-tdep.c (sparc_print_registers): Ditto.
	* regcache.c (legacy_max_register_virtual_size): Delete function.
This commit is contained in:
Andrew Cagney 2003-05-08 18:46:49 +00:00
parent 6037b8306e
commit 0c92afe8cd
11 changed files with 53 additions and 64 deletions

View file

@ -1086,6 +1086,11 @@ extern void *alloca ();
#include "arch-utils.h"
#endif
/* Maximum size of a register. Something small, but large enough for
all known ISAs. If it turns out to be too small, make it bigger. */
enum { MAX_REGISTER_SIZE = 16 };
/* FIXME: cagney/2003-03-01: Hack to prop up old targets while they
migrate to the overhauled register cache.
@ -1102,13 +1107,6 @@ extern void *alloca ();
extern int legacy_max_register_raw_size (void);
#define MAX_REGISTER_RAW_SIZE legacy_max_register_raw_size ()
#ifdef MAX_REGISTER_VIRTUAL_SIZE
#error MAX_REGISTER_VIRTUAL_SIZE defined
#endif
extern int legacy_max_register_virtual_size (void);
#define MAX_REGISTER_VIRTUAL_SIZE legacy_max_register_virtual_size ()
/* Static target-system-dependent parameters for GDB. */
/* Number of bits in a char or unsigned char for the target machine.