From: John Gilmore Date: Thu, 18 Feb 1993 09:59:35 +0000 (+0000) Subject: * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aea94564cac71dd37285764375fabcb2d5122d1d;p=binutils-gdb.git * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define. * config/hp300bsd.mh (REGEX, REGEX1): Define. * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__, define to kludge the large opcode table into two smaller tables, since GCC take exponential space to build the table. Lint. (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead. --- diff --git a/gdb/nm-hp300bsd.h b/gdb/nm-hp300bsd.h index 398f36d2b7c..71f7b063e07 100644 --- a/gdb/nm-hp300bsd.h +++ b/gdb/nm-hp300bsd.h @@ -1,5 +1,5 @@ /* Parameters for Hewlett-Packard 9000/300 native support under bsd. - Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc. + Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc. This file is part of GDB. @@ -41,3 +41,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ addr = (int) &((struct user *)0)->u_pcb.pcb_fpregs.fpf_fpiar; \ } +/* We can attach to processes using ptrace. */ + +#define ATTACH_DETACH +#define PTRACE_ATTACH 10 +#define PTRACE_DETACH 11 + +/* The third argument of ptrace is declared as this type. */ + +#define PTRACE_ARG3_TYPE caddr_t