diff options
author | Stu Grossman <grossman@cygnus> | 1993-04-23 23:43:18 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1993-04-23 23:43:18 +0000 |
commit | 66a1aa071ea2f7868b29a6c1e81febb12c88c12c (patch) | |
tree | ea0b5d7bfeb14c4329b9bfafc466fb1b95a892ad /gdb/hppab-nat.c | |
parent | b5728692b43217ea2babbe08a94552cb4b2ffeff (diff) | |
download | gdb-66a1aa071ea2f7868b29a6c1e81febb12c88c12c.zip gdb-66a1aa071ea2f7868b29a6c1e81febb12c88c12c.tar.gz gdb-66a1aa071ea2f7868b29a6c1e81febb12c88c12c.tar.bz2 |
* Merge in HPPA/BSD patches from Utah:
* defs.h: Add const to 2nd arg of psignal prototype.
* hppah-tdep.c: Renamed to hppa-tdep.c 'cuz it's common code with
BSD now.
* hppab-core.c: Deleted. No longer useful.
* hppab-nat.c: #include more files. Use PT_WUREGS, not
PT_WRITE_U.
* hppab-tdep.c: Deleted. Supplanted by hppa-tdep.c.
* config/pa/hppabsd.mh (NATDEPFILES): Remove hppab-core.o.
* config/pa/hppabsd.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
* config/pa/hppahpux.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
* config/pa/xm-hppab.h: #define SET_STACK_LIMIT_HUGE.
Diffstat (limited to 'gdb/hppab-nat.c')
-rw-r--r-- | gdb/hppab-nat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/hppab-nat.c b/gdb/hppab-nat.c index c0c49b8..b066d64 100644 --- a/gdb/hppab-nat.c +++ b/gdb/hppab-nat.c @@ -1,7 +1,7 @@ /* Machine-dependent hooks for the unix child process stratum. This code is for the HP PA-RISC cpu. - Copyright 1986, 1987, 1989, 1990, 1991, 1992 Free Software Foundation, Inc. + Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc. Contributed by the Center for Software Science at the University of Utah (pa-gdb-bugs@cs.utah.edu). @@ -24,6 +24,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "defs.h" #include "inferior.h" +#include "target.h" +#include <sys/ptrace.h> #ifndef PT_ATTACH #define PT_ATTACH PTRACE_ATTACH @@ -239,7 +241,7 @@ store_inferior_registers (regno) for (i = 0; i < REGISTER_RAW_SIZE (regno); i += sizeof(int)) { errno = 0; - ptrace (PT_WRITE_U, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, + ptrace (PT_WUREGS, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, *(int *) ®isters[REGISTER_BYTE (regno) + i]); if (errno != 0) { @@ -259,7 +261,7 @@ store_inferior_registers (regno) for (i = 0; i < REGISTER_RAW_SIZE (regno); i += sizeof(int)) { errno = 0; - ptrace (PT_WRITE_U, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, + ptrace (PT_WUREGS, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, *(int *) ®isters[REGISTER_BYTE (regno) + i]); if (errno != 0) { |