Deleted Added
full compact
ptrace.h (85941) ptrace.h (92383)
1/*-
2 * Copyright (c) 1984, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ptrace.h 8.2 (Berkeley) 1/4/94
1/*-
2 * Copyright (c) 1984, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)ptrace.h 8.2 (Berkeley) 1/4/94
34 * $FreeBSD: head/sys/sys/ptrace.h 85941 2001-11-03 03:17:16Z des $
34 * $FreeBSD: head/sys/sys/ptrace.h 92383 2002-03-16 00:25:53Z des $
35 */
36
37#ifndef _SYS_PTRACE_H_
38#define _SYS_PTRACE_H_
39
40#define PT_TRACE_ME 0 /* child declares it's being traced */
41#define PT_READ_I 1 /* read word in child's I space */
42#define PT_READ_D 2 /* read word in child's D space */
43/* was PT_READ_U 3 * read word in child's user structure */
44#define PT_WRITE_I 4 /* write word in child's I space */
45#define PT_WRITE_D 5 /* write word in child's D space */
46/* was PT_WRITE_U 6 * write word in child's user structure */
47#define PT_CONTINUE 7 /* continue the child */
48#define PT_KILL 8 /* kill the child process */
49#define PT_STEP 9 /* single step the child */
50
51#define PT_ATTACH 10 /* trace some running process */
52#define PT_DETACH 11 /* stop tracing a process */
53
35 */
36
37#ifndef _SYS_PTRACE_H_
38#define _SYS_PTRACE_H_
39
40#define PT_TRACE_ME 0 /* child declares it's being traced */
41#define PT_READ_I 1 /* read word in child's I space */
42#define PT_READ_D 2 /* read word in child's D space */
43/* was PT_READ_U 3 * read word in child's user structure */
44#define PT_WRITE_I 4 /* write word in child's I space */
45#define PT_WRITE_D 5 /* write word in child's D space */
46/* was PT_WRITE_U 6 * write word in child's user structure */
47#define PT_CONTINUE 7 /* continue the child */
48#define PT_KILL 8 /* kill the child process */
49#define PT_STEP 9 /* single step the child */
50
51#define PT_ATTACH 10 /* trace some running process */
52#define PT_DETACH 11 /* stop tracing a process */
53
54#define PT_FIRSTMACH 32 /* for machine-specific requests */
54#define PT_GETREGS 33 /* get general-purpose registers */
55#define PT_SETREGS 34 /* set general-purpose registers */
56#define PT_GETFPREGS 35 /* get floating-point registers */
57#define PT_SETFPREGS 36 /* set floating-point registers */
58#define PT_GETDBREGS 37 /* get debugging registers */
59#define PT_SETDBREGS 38 /* set debugging registers */
60
61#define PT_FIRSTMACH 64 /* for machine-specific requests */
55#include <machine/ptrace.h> /* machine-specific requests, if any */
56
57#ifdef _KERNEL
58int ptrace_set_pc(struct thread *_td, unsigned long _addr);
59int ptrace_single_step(struct thread *_td);
60
61/*
62 * These are prototypes for functions that implement some of the

--- 27 unchanged lines hidden ---
62#include <machine/ptrace.h> /* machine-specific requests, if any */
63
64#ifdef _KERNEL
65int ptrace_set_pc(struct thread *_td, unsigned long _addr);
66int ptrace_single_step(struct thread *_td);
67
68/*
69 * These are prototypes for functions that implement some of the

--- 27 unchanged lines hidden ---