From 826e69cf2a153d2b50b40a97ec91aad6363139a6 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Sat, 5 Feb 1994 00:36:32 +0000 Subject: Get REGISTER_TYPE right. --- gdb/config/sh/tm-sh.h | 9 ++++----- gdb/config/z8k/tm-z8k.h | 14 ++++++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) (limited to 'gdb') diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h index b5987e1..de31632 100644 --- a/gdb/config/sh/tm-sh.h +++ b/gdb/config/sh/tm-sh.h @@ -72,11 +72,8 @@ extern CORE_ADDR sh_skip_prologue (); #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */ -/* Say how long (ordinary) registers are. This is a piece of bogosity - used in push_word and a few other places; REGISTER_RAW_SIZE is the - real way to know how big a register is. */ - -#define REGISTER_SIZE 4 +/* Say how long registers are. */ +#define REGISTER_TYPE long /* Say how much memory is needed to store a copy of the register set */ #define REGISTER_BYTES (NUM_REGS*4) @@ -222,3 +219,5 @@ typedef unsigned short INSN_WORD; #define NOP {0x20, 0x0b} + +#define REGISTER_SIZE 4 diff --git a/gdb/config/z8k/tm-z8k.h b/gdb/config/z8k/tm-z8k.h index 722c1af..cf6c86a 100644 --- a/gdb/config/z8k/tm-z8k.h +++ b/gdb/config/z8k/tm-z8k.h @@ -19,6 +19,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define IEEE_FLOAT 1 +#undef TARGET_INT_BIT +#undef TARGET_LONG_BIT +#undef TARGET_SHORT_BIT +#undef TARGET_PTR_BIT + #define TARGET_SHORT_BIT 16 #define TARGET_INT_BIT 16 #define TARGET_LONG_BIT 32 @@ -69,11 +74,9 @@ extern CORE_ADDR mz8k_skip_prologue PARAMS ((CORE_ADDR ip)); #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */ -/* Say how long (ordinary) registers are. This is a piece of bogosity - used in push_word and a few other places; REGISTER_RAW_SIZE is the - real way to know how big a register is. */ +/* Say how long registers are. */ -#define REGISTER_SIZE 4 +#define REGISTER_TYPE unsigned int #define NUM_REGS 23 /* 16 registers + 1 ccr + 1 pc + 3 debug regs + fake fp + fake sp*/ @@ -283,3 +286,6 @@ int sim_z8001_mode; #define INIT_EXTRA_SYMTAB_INFO \ z8k_set_pointer_size(objfile->obfd->arch_info->bits_per_address); + +#define REGISTER_SIZE 4 + -- cgit v1.1