source: trunk/minix/commands/mdb/ptrace.2@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 988 bytes
Line 
1.TH PTRACE 2
2.SH NAME
3ptrace \- ptrace system call.
4.SH SYNOPSIS
5.ft B
6.nf
7.sp
8#include <sys/ptrace.h>
9
10long ptrace( int req, pid_t pid, long addr, long data)
11
12.fi
13.ft P
14.SH DESCRIPTION
15.sp
16Ptrace(2) is called with following arguments:
17.sp
18.br
19req
20request
21.br
22pid
23process id
24.br
25addr
26address
27.br
28data
29data
30.br
31.SH REQUESTS
32.sp
33.I
34T_STOP
35stop the process.
36.br
37.I
38T_OK
39enable tracing by parent for this process.
40.br
41.I
42T_GETINS
43return value from instruction space
44.br
45.I
46T_GETDATA
47return value from data space.
48.br
49.I
50T_GETUSER
51return value from process table. See proc.h in kernel.
52.br
53.I
54T_SETINS
55set value from instruction space.
56.br
57.I
58T_SETDATA
59set value from data space.
60.br
61.I
62T_SETUSER
63set value in process table.
64.br
65.I
66T_RESUME
67resume execution.
68.br
69.I
70T_EXIT
71exit. Turn off tracing.
72.br
73.I
74T_STEP
75set trace bit to enable single step.
76.SH "SEE ALSO"
77.sp
78mdb(1)
79.SH DIAGNOSTICS
80.sp
81errno is set by ptrace().
82.SH FILES
83.sp
84/usr/src/kernel/proc.h for process table info.
85
86
87
Note: See TracBrowser for help on using the repository browser.