diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-04-28 21:20:40 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-04-28 21:20:40 +0000 |
commit | 0626f40d92f8d572550e5085e6f08b909a59492b (patch) | |
tree | 09a47e8a7e2061df5fb75843f9d42deadf1a7875 /gdb/infptrace.c | |
parent | a13872602a56f4ee5509134fd29447b380c116fb (diff) | |
download | gdb-0626f40d92f8d572550e5085e6f08b909a59492b.zip gdb-0626f40d92f8d572550e5085e6f08b909a59492b.tar.gz gdb-0626f40d92f8d572550e5085e6f08b909a59492b.tar.bz2 |
* hp300ux-nat.c: Cast second arg to supply_register calls.
(_initialize_kernel_u_addr, getpagesize): New functions.
(store_inferior_register_1): Change arg name from value to val.
(fetch_core_registers): Make arg core_reg_size unsigned.
Pass 5 args to ptrace.
* config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
Remove KERNEL_U_ADDR stuff.
* infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
* config/m68k/hp300hpux.m{t,h}:
Move exec.o from NATDEPFILES to TDEPFILES
* config/m68k/hp300hpux.mt: Mention GAS requirement. Remove
hp-include stuff. Add m68k-tdep.o to TDEPFILES.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r-- | gdb/infptrace.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c index f97d2c3..aafbd85 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -22,8 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "inferior.h" #include "target.h" -#include "nm.h" - #ifdef USG #include <sys/types.h> #endif @@ -33,11 +31,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <signal.h> #include <sys/ioctl.h> +#ifndef NO_PTRACE_H #ifdef PTRACE_IN_WRONG_PLACE #include <ptrace.h> #else #include <sys/ptrace.h> #endif +#endif /* NO_PTRACE_H */ #if !defined (PT_KILL) #define PT_KILL 8 @@ -64,6 +64,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #endif #include <sys/stat.h> +#if defined (FIVE_ARG_PTRACE +/* Deal with HPUX 8.0 braindamage. */ +#define ptrace(a,b,c,d) ptrace(a,b,c,d,0) +#endif + #if !defined (FETCH_INFERIOR_REGISTERS) #include <sys/user.h> /* Probably need to poke the user structure */ #if defined (KERNEL_U_ADDR_BSD) @@ -133,10 +138,6 @@ child_resume (step, signal) } #ifdef ATTACH_DETACH -/* Nonzero if we are debugging an attached process rather than - an inferior. */ -extern int attach_flag; - /* Start debugging the process whose number is PID. */ int attach (pid) |