diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-12-26 18:10:22 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-12-26 18:10:22 +0000 |
commit | f4f0d174871fc68497aebc705f78bbd09fe3e498 (patch) | |
tree | e9eed18f76859d5a4f0e2d4f3aa7293cc5972272 /gdb/config | |
parent | 192c3eeb94e19460aee7561b3db2ce01cef83666 (diff) | |
download | gdb-f4f0d174871fc68497aebc705f78bbd09fe3e498.zip gdb-f4f0d174871fc68497aebc705f78bbd09fe3e498.tar.gz gdb-f4f0d174871fc68497aebc705f78bbd09fe3e498.tar.bz2 |
* valops.c (call_function_by_hand, push_word), defs.h (push_word),
convex-xdep.c, m88k-nat.c, i386m3-nat.c, mips-tdep.c, mipsm3-nat.c,
ns32km3-nat.c, remote-bug.c, m88k-tdep.c, remote-hms.c, remote-mips.c,
config/gould/tm-np1.h, hppa-tdep.c (hppa_fix_call_dummy), remote-vx.c:
Use REGISTER_SIZE, unsigned LONGEST, and
{store,extract}_unsigned_integer, instead of sizeof
(REGISTER_TYPE) and REGISTER_TYPE.
* All tm.h files: Change REGISTER_TYPE to REGISTER_SIZE.
* hppa-tdep.c (pa_print_fp_reg): Remove unused variable val.
* Makefile.in (ALLDEPFILES): Remove i386ly-nat.c and m68kly-nat.c.
Add lynx-nat.c.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/a29k/tm-a29k.h | 6 | ||||
-rw-r--r-- | gdb/config/h8300/tm-h8300.h | 6 | ||||
-rw-r--r-- | gdb/config/h8500/tm-h8500.h | 6 | ||||
-rw-r--r-- | gdb/config/i386/tm-i386v.h | 6 | ||||
-rw-r--r-- | gdb/config/i386/tm-sun386.h | 6 | ||||
-rw-r--r-- | gdb/config/i960/tm-i960.h | 6 | ||||
-rw-r--r-- | gdb/config/m68k/tm-m68k.h | 6 | ||||
-rw-r--r-- | gdb/config/m68k/tm-vx68.h | 2 | ||||
-rw-r--r-- | gdb/config/m88k/tm-m88k.h | 6 | ||||
-rw-r--r-- | gdb/config/mips/tm-mips.h | 6 | ||||
-rw-r--r-- | gdb/config/ns32k/tm-merlin.h | 6 | ||||
-rw-r--r-- | gdb/config/ns32k/tm-umax.h | 6 | ||||
-rw-r--r-- | gdb/config/pa/tm-hppa.h | 32 | ||||
-rw-r--r-- | gdb/config/sh/tm-sh.h | 7 | ||||
-rw-r--r-- | gdb/config/sparc/tm-sparc.h | 6 | ||||
-rw-r--r-- | gdb/config/vax/tm-vax.h | 6 | ||||
-rw-r--r-- | gdb/config/z8k/tm-z8k.h | 6 |
17 files changed, 73 insertions, 52 deletions
diff --git a/gdb/config/a29k/tm-a29k.h b/gdb/config/a29k/tm-a29k.h index 7d24044..cf5fbca 100644 --- a/gdb/config/a29k/tm-a29k.h +++ b/gdb/config/a29k/tm-a29k.h @@ -100,9 +100,11 @@ CORE_ADDR skip_prologue (); #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */ -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Allow the register declarations here to be overridden for remote kernel debugging. */ diff --git a/gdb/config/h8300/tm-h8300.h b/gdb/config/h8300/tm-h8300.h index e3de3d5..a0f60c4 100644 --- a/gdb/config/h8300/tm-h8300.h +++ b/gdb/config/h8300/tm-h8300.h @@ -93,9 +93,11 @@ extern CORE_ADDR h8300_skip_prologue (); #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */ -/* Say how long registers are. */ +/* 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_TYPE unsigned short +#define REGISTER_SIZE 2 #define NUM_REGS 13 diff --git a/gdb/config/h8500/tm-h8500.h b/gdb/config/h8500/tm-h8500.h index 14d476f..0e4494b 100644 --- a/gdb/config/h8500/tm-h8500.h +++ b/gdb/config/h8500/tm-h8500.h @@ -75,9 +75,11 @@ extern CORE_ADDR h8500_skip_prologue (); #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */ -/* Say how long registers are. */ +/* 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_TYPE unsigned long +#define REGISTER_SIZE 4 /* Say how much memory is needed to store a copy of the register set */ diff --git a/gdb/config/i386/tm-i386v.h b/gdb/config/i386/tm-i386v.h index 89c1c61..3f7d650 100644 --- a/gdb/config/i386/tm-i386v.h +++ b/gdb/config/i386/tm-i386v.h @@ -84,9 +84,11 @@ i386_skip_prologue PARAMS ((int)); #define INVALID_FLOAT(p, len) (0) -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ diff --git a/gdb/config/i386/tm-sun386.h b/gdb/config/i386/tm-sun386.h index 9c1f6a8..29a1201 100644 --- a/gdb/config/i386/tm-sun386.h +++ b/gdb/config/i386/tm-sun386.h @@ -92,9 +92,11 @@ i386_skip_prologue PARAMS ((int)); /* Name of the builtin type for the LONGEST type above. */ #define BUILTIN_TYPE_LONGEST builtin_type_long -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ diff --git a/gdb/config/i960/tm-i960.h b/gdb/config/i960/tm-i960.h index 12f844e..d1513f7 100644 --- a/gdb/config/i960/tm-i960.h +++ b/gdb/config/i960/tm-i960.h @@ -73,9 +73,11 @@ extern CORE_ADDR saved_pc_after_call (); #define INVALID_FLOAT(p, len) (0) -/* How long (ordinary) registers are */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ #define NUM_REGS 40 diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h index 14b71cf..c7f64e0 100644 --- a/gdb/config/m68k/tm-m68k.h +++ b/gdb/config/m68k/tm-m68k.h @@ -95,9 +95,11 @@ extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *)); #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */ -/* Say how long registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 #define REGISTER_BYTES_FP (16*4 + 8 + 8*12 + 3*4) #define REGISTER_BYTES_NOFP (16*4 + 8) diff --git a/gdb/config/m68k/tm-vx68.h b/gdb/config/m68k/tm-vx68.h index 092045e..23ace23 100644 --- a/gdb/config/m68k/tm-vx68.h +++ b/gdb/config/m68k/tm-vx68.h @@ -88,4 +88,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Number of registers in a ptrace_getfpregs call. */ #define VX_SIZE_FPREGS (8 * REGISTER_RAW_SIZE (FP0_REGNUM) \ - + (3 * sizeof (REGISTER_TYPE))) + + (3 * REGISTER_SIZE)) diff --git a/gdb/config/m88k/tm-m88k.h b/gdb/config/m88k/tm-m88k.h index 77b902b..9b50dcf 100644 --- a/gdb/config/m88k/tm-m88k.h +++ b/gdb/config/m88k/tm-m88k.h @@ -102,9 +102,11 @@ extern CORE_ADDR skip_prologue (); #define INVALID_FLOAT(p,len) 0 -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 916dba3..5bc947f 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -83,9 +83,11 @@ extern int in_sigtramp PARAMS ((CORE_ADDR, char *)); #define INVALID_FLOAT(p,l) 0 -/* Say how long (all) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ diff --git a/gdb/config/ns32k/tm-merlin.h b/gdb/config/ns32k/tm-merlin.h index b6d29c1..ec3505c 100644 --- a/gdb/config/ns32k/tm-merlin.h +++ b/gdb/config/ns32k/tm-merlin.h @@ -75,9 +75,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define NS32K_SVC_IMMED_OPERANDS -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ diff --git a/gdb/config/ns32k/tm-umax.h b/gdb/config/ns32k/tm-umax.h index 3e33d25..7847041 100644 --- a/gdb/config/ns32k/tm-umax.h +++ b/gdb/config/ns32k/tm-umax.h @@ -87,9 +87,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ NaD (*(double *) p)) #endif /* INVALID_FLOAT */ -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h index 3dd646d..23d9fe5 100644 --- a/gdb/config/pa/tm-hppa.h +++ b/gdb/config/pa/tm-hppa.h @@ -120,9 +120,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Name of the builtin type for the LONGEST type above. */ #define BUILTIN_TYPE_LONGEST builtin_type_long -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ @@ -217,23 +219,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define MAX_REGISTER_VIRTUAL_SIZE 8 -/* Nonzero if register N requires conversion - from raw format to virtual format. */ - -#define REGISTER_CONVERTIBLE(N) 0 - -/* Convert data from raw format for register REGNUM - to virtual format for register REGNUM. */ - -#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM, FROM, TO) \ -{ memcpy ((TO), (FROM), (REGNUM) < FP4_REGNUM ? 4 : 8); } - -/* Convert data from virtual format for register REGNUM - to raw format for register REGNUM. */ - -#define REGISTER_CONVERT_TO_RAW(REGNUM, FROM, TO) \ -{ memcpy ((TO), (FROM), (REGNUM) < FP4_REGNUM ? 4 : 8); } - /* Return the GDB type object for the "standard" data type of data in register N. */ @@ -257,8 +242,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ of type TYPE, given in virtual format. */ #define STORE_RETURN_VALUE(TYPE,VALBUF) \ - write_register_bytes (TYPE_LENGTH(TYPE) > 4 ? FP4_REGNUM :28, \ - VALBUF, TYPE_LENGTH (TYPE)) + write_register_bytes ((TYPE_LENGTH(TYPE) > 4 \ + ? REGISTER_BYTE (FP4_REGNUM) \ + : REGISTER_BYTE (28)), \ + (VALBUF), TYPE_LENGTH (TYPE)) /* Extract from an array REGBUF containing the (raw) register state the address in which a function should return its structure value, @@ -565,5 +552,8 @@ struct obj_unwind_info { #define OBJ_UNWIND_INFO(obj) ((struct obj_unwind_info *)obj->obj_private) +extern CORE_ADDR target_read_pc PARAMS ((void)); +extern void target_write_pc PARAMS ((CORE_ADDR)); + #define TARGET_READ_PC() target_read_pc () #define TARGET_WRITE_PC(v) target_write_pc (v) diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h index 21d7a4a..b5987e1 100644 --- a/gdb/config/sh/tm-sh.h +++ b/gdb/config/sh/tm-sh.h @@ -72,8 +72,11 @@ extern CORE_ADDR sh_skip_prologue (); #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */ -/* Say how long registers are. */ -#define REGISTER_TYPE long +/* 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 much memory is needed to store a copy of the register set */ #define REGISTER_BYTES (NUM_REGS*4) diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index 960ab75..b71f7f2 100644 --- a/gdb/config/sparc/tm-sparc.h +++ b/gdb/config/sparc/tm-sparc.h @@ -126,9 +126,11 @@ extern CORE_ADDR sparc_pc_adjust(); #define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */ -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ diff --git a/gdb/config/vax/tm-vax.h b/gdb/config/vax/tm-vax.h index 6d39f75..1671870 100644 --- a/gdb/config/vax/tm-vax.h +++ b/gdb/config/vax/tm-vax.h @@ -89,9 +89,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define INVALID_FLOAT(p, len) ((*(short *) p & 0xff80) == 0x8000) -/* Say how long (ordinary) registers are. */ +/* 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_TYPE long +#define REGISTER_SIZE 4 /* Number of machine registers */ diff --git a/gdb/config/z8k/tm-z8k.h b/gdb/config/z8k/tm-z8k.h index b735973..722c1af 100644 --- a/gdb/config/z8k/tm-z8k.h +++ b/gdb/config/z8k/tm-z8k.h @@ -69,9 +69,11 @@ 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 registers are. */ +/* 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_TYPE unsigned int +#define REGISTER_SIZE 4 #define NUM_REGS 23 /* 16 registers + 1 ccr + 1 pc + 3 debug regs + fake fp + fake sp*/ |