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/pa | |
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/pa')
-rw-r--r-- | gdb/config/pa/tm-hppa.h | 32 |
1 files changed, 11 insertions, 21 deletions
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) |