$NetBSD: patch-ab,v 1.1 2006/03/05 08:17:49 christos Exp $ --- defs.h 2006-01-12 05:18:53.000000000 -0500 +++ defs.h 2006-03-04 22:25:02.000000000 -0500 @@ -267,6 +267,37 @@ #define PR_FAULTED S_CORE #endif +#if !defined(PTRACE_ATTACH) && defined(PT_ATTACH) +#define PTRACE_ATTACH PT_ATTACH +#endif +#if !defined(PTRACE_DETACH) && defined(PT_DETACH) +#define PTRACE_DETACH PT_DETACH +#endif +#if !defined(PTRACE_TRACEME) && defined(PT_TRACE_ME) +#define PTRACE_TRACEME PT_TRACE_ME +#endif +#if !defined(PTRACE_SYSCALL) && defined(PT_SYSCALL) +#define PTRACE_SYSCALL PT_SYSCALL +#endif +#if !defined(PTRACE_KILL) && defined(PT_KILL) +#define PTRACE_KILL PT_KILL +#endif +#if !defined(PTRACE_CONT) && defined(PT_CONTINUE) +#define PTRACE_CONT PT_CONTINUE +#endif +#if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D) +#define PTRACE_PEEKDATA PT_READ_D +#endif +#if !defined(PTRACE_PEEKUSER) && defined(PT_READ_I) +#define PTRACE_PEEKUSER PT_READ_I +#endif +#if !defined(PTRACE_GETREGS) && defined(PT_GETREGS) +#define PTRACE_GETREGS PT_GETREGS +#endif +#if !defined(PTRACE_SETREGS) && defined(PT_SETREGS) +#define PTRACE_SETREGS PT_SETREGS +#endif + /* Trace Control Block */ struct tcb { short flags; /* See below for TCB_ values */ @@ -309,6 +340,8 @@ #endif #ifdef FREEBSD struct procfs_status status; +#endif +#ifdef ALLBSD int pfd_reg; int pfd_status; #endif