1 /*- 2 * Copyright (c) 1984 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)ptrace.h 7.4 (Berkeley) 02/22/91 8 */ 9 10 #ifndef _PTRACE_H_ 11 #define _PTRACE_H_ 12 13 #define PT_TRACE_ME 0 /* child declares it's being traced */ 14 #define PT_READ_I 1 /* read word in child's I space */ 15 #define PT_READ_D 2 /* read word in child's D space */ 16 #define PT_READ_U 3 /* read word in child's user structure */ 17 #define PT_WRITE_I 4 /* write word in child's I space */ 18 #define PT_WRITE_D 5 /* write word in child's D space */ 19 #define PT_WRITE_U 6 /* write word in child's user structure */ 20 #define PT_CONTINUE 7 /* continue the child */ 21 #define PT_KILL 8 /* kill the child process */ 22 #define PT_STEP 9 /* single step the child */ 23 24 #ifndef KERNEL 25 26 #include <sys/cdefs.h> 27 28 __BEGIN_DECLS 29 int ptrace __P((int _request, pid_t _pid, caddr_t _addr, int _data)); 30 __END_DECLS 31 32 #endif /* !KERNEL */ 33 34 #endif /* !_PTRACE_H_ */ 35