core reorg
This commit is contained in:
parent
b44f8257b1
commit
47529628bb
|
@ -1 +1 @@
|
|||
revision 1.15 intentionally removed
|
||||
revision 1.16 intentionally removed
|
||||
|
|
|
@ -1 +1 @@
|
|||
revision 1.14 intentionally removed
|
||||
revision 1.15 intentionally removed
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)ptrace.h 7.4 (Berkeley) 2/22/91
|
||||
* $Id: ptrace.h,v 1.5 1993/09/05 03:54:18 sef Exp $
|
||||
* $Id: ptrace.h,v 1.6 1994/01/08 11:19:53 cgd Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_PTRACE_H_
|
||||
|
@ -47,19 +47,47 @@
|
|||
#define PT_CONTINUE 7 /* continue the child */
|
||||
#define PT_KILL 8 /* kill the child process */
|
||||
#define PT_STEP 9 /* single step the child */
|
||||
/*#define PT_ATTACH 10 /* attach to running process */
|
||||
/*#define PT_DETACH 11 /* detach from running process */
|
||||
#define PT_GETREGS 12 /* fetch registers */
|
||||
#define PT_SETREGS 13 /* set registers */
|
||||
#ifdef notyet
|
||||
#define PT_ATTACH 10 /* attach to running process */
|
||||
#define PT_DETACH 11 /* detach from running process */
|
||||
#endif notyet
|
||||
|
||||
#ifndef KERNEL
|
||||
#define PT_FIRSTMACH 32 /* for machine-specific requests */
|
||||
#include <machine/ptrace.h> /* machine-specific requests, if any */
|
||||
|
||||
#ifdef KERNEL
|
||||
/* reparent a process */
|
||||
void proc_reparent __P((struct proc *child, struct proc *parent));
|
||||
|
||||
/* internal machine-dependent functions used by ptrace (and others) */
|
||||
#if defined(PT_GETREGS) || defined(PT_SETREGS)
|
||||
struct reg;
|
||||
#endif
|
||||
#ifdef PT_GETREGS
|
||||
int process_read_regs __P((struct proc *p, struct reg *regs));
|
||||
#endif
|
||||
#ifdef PT_SETREGS
|
||||
int process_write_regs __P((struct proc *p, struct reg *regs));
|
||||
#endif
|
||||
int process_sstep __P((struct proc *p));
|
||||
int process_fix_sstep __P((struct proc *p));
|
||||
int process_set_pc __P((struct proc *p, u_int addr));
|
||||
|
||||
/* macros used by more than one kernel subsystem */
|
||||
|
||||
/* do a single-stepping fixup, if needed */
|
||||
#define FIX_SSTEP(p) { \
|
||||
if ((p)->p_stat & SSSTEP) { \
|
||||
process_fix_sstep(p); \
|
||||
(p)->p_stat &= ~SSSTEP; \
|
||||
} \
|
||||
}
|
||||
#else /* KERNEL */
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
int ptrace __P((int _request, pid_t _pid, caddr_t _addr, int _data));
|
||||
__END_DECLS
|
||||
|
||||
#endif /* !KERNEL */
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_PTRACE_H_ */
|
||||
|
|
Loading…
Reference in New Issue