From aea94564cac71dd37285764375fabcb2d5122d1d Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Thu, 18 Feb 1993 09:59:35 +0000 Subject: [PATCH] * 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. --- gdb/nm-hp300bsd.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.30.2