Searched refs:ptrace (Results 1 - 25 of 135) sorted by relevance

123456

/freebsd-10-stable/sys/amd64/include/
H A Dptrace.h6 #include <x86/ptrace.h>
/freebsd-10-stable/sys/i386/include/
H A Dptrace.h6 #include <x86/ptrace.h>
/freebsd-10-stable/sys/pc98/include/
H A Dptrace.h6 #include <x86/ptrace.h>
/freebsd-10-stable/lib/libc/sys/
H A Dptrace.c37 #include <sys/ptrace.h>
41 __weak_reference(_ptrace, ptrace);
/freebsd-10-stable/contrib/gdb/gdb/
H A Damd64bsd-nat.c31 #include <sys/ptrace.h>
49 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
62 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
80 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
86 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
98 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
104 if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
H A Dmipsfbsd-nat.c35 #include <sys/ptrace.h>
52 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
65 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
80 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
86 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
98 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
104 if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
H A Dmipsnbsd-nat.c28 #include <sys/ptrace.h>
45 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
58 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
73 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
79 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
91 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
97 if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
H A Dppcnbsd-nat.c23 #include <sys/ptrace.h>
63 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
76 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
93 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
99 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
111 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
117 if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
H A Dia64-fbsd-nat.c32 #include <sys/ptrace.h>
62 if (ptrace (PT_GETREGS, PIDGET(inferior_ptid),
70 if (ptrace (PT_GETFPREGS, PIDGET(inferior_ptid),
87 if (ptrace (PT_GETREGS, PIDGET(inferior_ptid),
91 if (ptrace (PT_SETREGS, PIDGET(inferior_ptid),
100 if (ptrace (PT_GETFPREGS, PIDGET(inferior_ptid),
104 if (ptrace (PT_SETFPREGS, PIDGET(inferior_ptid),
119 if (ptrace (PT_GETKSTACK, PIDGET(inferior_ptid), (PTRACE_ARG3_TYPE)rbuf,
125 if (ptrace (PT_SETKSTACK, PIDGET(inferior_ptid), (PTRACE_ARG3_TYPE)wbuf,
H A Dalphabsd-nat.c29 #include <sys/ptrace.h>
94 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
107 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
124 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
130 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
142 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
148 if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
H A Dppcfbsd-nat.c23 #include <sys/ptrace.h>
79 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
92 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
109 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
115 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
127 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
133 if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
H A Dinfptrace.c1 /* Low level Unix child interface to ptrace, for GDB when running under Unix.
44 #include <ptrace.h>
47 #include <sys/ptrace.h>
118 /* This function simply calls ptrace with the given arguments.
119 It exists so that all calls to ptrace are isolated in this
138 pt_status = ptrace (PT_SETTRC, pid, addr, data);
142 pt_status = ptrace (PT_SETTRC, pid, addr, data, 0);
145 perror_with_name ("ptrace");
175 pt_status = ptrace (request, pid, addr, data);
179 pt_status = ptrace (reques
195 #define ptrace macro
[all...]
H A Di386bsd-nat.c29 #include <sys/ptrace.h>
185 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
201 && ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid),
209 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
216 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
235 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
241 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
256 && ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid),
263 if (ptrace (PT_SETXMMREGS, PIDGET (inferior_ptid),
271 if (ptrace (PT_GETFPREG
[all...]
H A Di386fbsd-nat.c27 #include <sys/ptrace.h>
74 /* An addres of (caddr_t) 1 tells ptrace to continue from where it
77 if (ptrace (request, pid, (caddr_t) 1,
79 perror_with_name ("ptrace");
H A Di386v-nat.c26 #include <ptrace.h>
29 #include <sys/ptrace.h>
189 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_CONTROL]),
191 ptrace (6, pid, offsetof (struct user, u_debugreg[free_debug_register]),
252 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_CONTROL]),
254 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_STATUS]), 0);
267 status = ptrace (3, pid, offsetof (struct user, u_debugreg[DR_STATUS]), 0);
268 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_STATUS]), 0);
H A Dsparc-nat.c30 #include <sys/ptrace.h>
40 not all) ptrace(2) based SPARC systems, which includes SunOS 4,
43 First, we need a data structure for use with ptrace(2). SunOS has
65 /* Second, we need to remap the BSD ptrace(2) requests to their SunOS
169 if (ptrace (PTRACE_GETREGS, pid, (PTRACE_ARG3_TYPE) &regs, 0) == -1)
181 if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
204 if (ptrace (PTRACE_GETREGS, pid, (PTRACE_ARG3_TYPE) &regs, 0) == -1)
209 if (ptrace (PTRACE_SETREGS, pid, (PTRACE_ARG3_TYPE) &regs, 0) == -1)
230 if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
242 if (ptrace (PTRACE_SETFPREG
[all...]
/freebsd-10-stable/tools/test/ptrace/
H A Dscescx.c30 #include <sys/ptrace.h>
195 if (ptrace(PT_TO_SCE, pid, (caddr_t)1, 0) < 0) {
197 ptrace(PT_KILL, pid, NULL, 0);
212 if (ptrace(PT_LWPINFO, pid, (caddr_t)&lwpinfo, sizeof(lwpinfo)) < 0) {
214 ptrace(PT_KILL, pid, NULL, 0);
220 if (ptrace(PT_TO_SCX, pid, (caddr_t)1, 0) < 0) {
222 ptrace(PT_KILL, pid, NULL, 0);
237 if (ptrace(PT_LWPINFO, pid, (caddr_t)&lwpinfo, sizeof(lwpinfo)) < 0) {
239 ptrace(PT_KILL, pid, NULL, 0);
261 if (ptrace(PT_CONTINU
[all...]
/freebsd-10-stable/usr.bin/truss/
H A Di386-fbsd.c37 #include <sys/ptrace.h>
60 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
71 * The system call argument count and code from ptrace() already
87 ptrace(PT_IO, tid, (caddr_t)&iorequest, 0);
101 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
H A Darm-fbsd.c37 #include <sys/ptrace.h>
61 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
71 * The system call argument count and code from ptrace() already
77 if ((syscall_num = ptrace(PT_READ_I, tid,
103 ptrace(PT_IO, tid, (caddr_t)&iorequest, 0);
118 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
H A Damd64-fbsd32.c37 #include <sys/ptrace.h>
63 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
74 * The system call argument count and code from ptrace() already
90 ptrace(PT_IO, tid, (caddr_t)&iorequest, 0);
108 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
H A Dmips-fbsd.c37 #include <sys/ptrace.h>
60 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
70 * The system call argument count and code from ptrace() already
101 ptrace(PT_IO, tid, (caddr_t)&iorequest, 0);
116 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
H A Damd64-fbsd.c37 #include <sys/ptrace.h>
60 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
70 * The system call argument count and code from ptrace() already
97 ptrace(PT_IO, tid, (caddr_t)&iorequest, 0);
112 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
H A Dsparc64-fbsd.c37 #include <sys/ptrace.h>
62 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
72 * The system call argument count and code from ptrace() already
91 ptrace(PT_IO, tid, (caddr_t)&iorequest, 0);
106 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
H A Dpowerpc64-fbsd.c33 #include <sys/ptrace.h>
56 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
66 * The system call argument count and code from ptrace() already
84 ptrace(PT_IO, tid, (caddr_t)&iorequest, 0);
99 if (ptrace(PT_GETREGS, tid, (caddr_t)&regs, 0) < 0) {
/freebsd-10-stable/lib/libproc/
H A Dproc_regs.c34 #include <sys/ptrace.h>
53 if (ptrace(PT_GETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0)
96 if (ptrace(PT_GETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0)
125 if (ptrace(PT_SETREGS, proc_getpid(phdl), (caddr_t)&regs, 0) < 0)

Completed in 144 milliseconds

123456