/openbsd-current/sys/arch/armv7/include/ |
H A D | ptrace.h | 1 /* $OpenBSD: ptrace.h,v 1.1 2013/09/04 14:38:28 patrick Exp $ */ 2 /* $NetBSD: ptrace.h,v 1.3 2001/11/25 15:55:58 thorpej Exp $ */ 4 #include <arm/ptrace.h>
|
/openbsd-current/sys/arch/landisk/include/ |
H A D | ptrace.h | 1 /* $OpenBSD: ptrace.h,v 1.2 2009/11/24 11:59:59 jasper Exp $ */ 3 #include <sh/ptrace.h>
|
/openbsd-current/lib/libc/hidden/sys/ |
H A D | ptrace.h | 1 /* $OpenBSD: ptrace.h,v 1.1 2016/03/30 07:55:36 guenther Exp $ */ 21 #include_next <sys/ptrace.h> 23 PROTO_WRAP(ptrace); variable
|
/openbsd-current/sys/arch/loongson/include/ |
H A D | ptrace.h | 1 /* $OpenBSD: ptrace.h,v 1.1.1.1 2009/07/31 09:26:26 miod Exp $ */ 3 #include <mips64/ptrace.h>
|
/openbsd-current/sys/arch/luna88k/include/ |
H A D | ptrace.h | 1 /* $OpenBSD: ptrace.h,v 1.3 2004/04/26 14:31:08 miod Exp $ */ 3 #include <m88k/ptrace.h>
|
/openbsd-current/sys/arch/macppc/include/ |
H A D | ptrace.h | 1 /* $OpenBSD: ptrace.h,v 1.1 2001/09/01 15:49:06 drahn Exp $ */ 3 #include <powerpc/ptrace.h>
|
/openbsd-current/sys/arch/octeon/include/ |
H A D | ptrace.h | 1 /* $OpenBSD: ptrace.h,v 1.1 2010/09/20 06:32:30 syuu Exp $ */ 3 #include <mips64/ptrace.h>
|
/openbsd-current/lib/libc/sys/ |
H A D | ptrace.c | 1 /* $OpenBSD: ptrace.c,v 1.5 2016/03/30 07:55:36 guenther Exp $ */ 5 #include <sys/ptrace.h> 9 WRAP(ptrace)(int request, pid_t pid, caddr_t addr, int data) function 12 /* ptrace(2) is documented to clear errno on success: */ 14 return (ptrace(request, pid, addr, data)); 16 DEF_WRAP(ptrace); variable
|
/openbsd-current/regress/sys/ptrace/ |
H A D | Makefile | 3 PROG=ptrace
|
H A D | ptrace.c | 1 /* $OpenBSD: ptrace.c,v 1.10 2021/05/17 15:28:24 deraadt Exp $ */ 29 #include <sys/ptrace.h> 40 * This tests checks whether ptrace will correctly cope with unaligned pc. 50 ptrace(PT_TRACE_ME, 0, 0, 0); 57 ptrace(PT_GETREGS, pid, (caddr_t)®s, 0); 96 ptrace(PT_SETREGS, pid, (caddr_t)®s, 0); 97 ptrace(PT_CONTINUE, pid, (caddr_t)1, 0);
|
/openbsd-current/gnu/usr.bin/binutils/gdb/ |
H A D | mipsnbsd-nat.c | 29 #include <sys/ptrace.h> 46 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 59 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid), 74 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 80 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), 92 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid), 98 if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
H A D | amd64bsd-nat.c | 32 #include <sys/ptrace.h> 37 #include "inf-ptrace.h" 59 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 71 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 96 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 101 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 112 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 117 if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
H A D | gdb_ptrace.h | 1 /* Portable <sys/ptrace.h> 25 /* The <sys/ptrace.h> header was introduced with 4.4BSD, and provided 26 the PT_* symbolic constants for the ptrace(2) request numbers. The 27 ptrace(2) prototype was added later to the same header on BSD. 30 (and probably never will have) a <sys/ptrace.h> with symbolic 31 constants; the ptrace(2) prototype can be found in <unistd.h>. 33 common ptrace requests. */ 36 # include <ptrace.h> 38 # include <sys/ptrace.h> 69 ptrace request [all...] |
H A D | amd64-linux-nat.c | 31 #include <sys/ptrace.h> 37 <asm/ptrace.h> because the latter redefines FS and GS for no apparent 41 been removed from ptrace.h in the kernel. However, better safe than 43 #include <asm/ptrace.h> 167 if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0) 179 if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0) 204 if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0) 209 if (ptrace (PTRACE_SETREGS, tid, 0, (long) ®s) < 0) 220 if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0) 225 if (ptrace (PTRACE_SETFPREG [all...] |
H A D | m88kbsd-nat.c | 28 #include <sys/ptrace.h> 32 #include "inf-ptrace.h" 73 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 88 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 94 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
H A D | shnbsd-nat.c | 27 #include <sys/ptrace.h> 32 #include "inf-ptrace.h" 48 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 66 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 72 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
H A D | alphabsd-nat.c | 28 #include "inf-ptrace.h" 31 #include <sys/ptrace.h> 95 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 108 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid), 125 if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), 131 if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), 143 if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid), 149 if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
H A D | infptrace.c | 1 /* Low level Unix child interface to ptrace, for GDB when running under Unix. 58 /* This function simply calls ptrace with the given arguments. 59 It exists so that all calls to ptrace are isolated in this 78 pt_status = ptrace (PT_SETTRC, pid, addr, data); 82 pt_status = ptrace (PT_SETTRC, pid, addr, data, 0); 85 perror_with_name ("ptrace"); 115 pt_status = ptrace (request, pid, addr, data); 119 pt_status = ptrace (request, pid, addr, data, 0); 136 #define ptrace call_ptrace 157 should call inf_ptrace_target to get a basic ptrace targe 135 #define ptrace macro [all...] |
H A D | i386bsd-nat.c | 30 #include <sys/ptrace.h> 37 #include "inf-ptrace.h" 150 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 165 && ptrace(PT_GETXMMREGS, pid, (PTRACE_TYPE_ARG3) xmmregs, 0) == 0) 172 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 178 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 204 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 209 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 223 && ptrace(PT_GETXMMREGS, pid, (PTRACE_TYPE_ARG3) xmmregs, 0) == 0) 229 if (ptrace (PT_SETXMMREG [all...] |
H A D | i386v-nat.c | 26 #include <ptrace.h> 29 #include <sys/ptrace.h> 185 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_CONTROL]), 187 ptrace (6, pid, offsetof (struct user, u_debugreg[free_debug_register]), 248 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_CONTROL]), 250 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_STATUS]), 0); 263 status = ptrace (3, pid, offsetof (struct user, u_debugreg[DR_STATUS]), 0); 264 ptrace (6, pid, offsetof (struct user, u_debugreg[DR_STATUS]), 0);
|
H A D | i386-linux-nat.c | 30 #include <sys/ptrace.h> 76 core-dumps, and is also used by `ptrace'. The corresponding types 104 /* Which ptrace request retrieves which registers? 184 val = ptrace (PTRACE_PEEKUSER, tid, register_addr (regno, 0), 0); 211 ptrace (PTRACE_POKEUSER, tid, register_addr (regno, 0), val); 269 if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) 293 if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) 298 if (ptrace (PTRACE_SETREGS, tid, 0, (int) ®s) < 0) 342 if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0) 356 if (ptrace (PTRACE_GETFPREG [all...] |
H A D | mips64obsd-nat.c | 28 #include <sys/ptrace.h> 32 #include "inf-ptrace.h" 95 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 116 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 121 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
/openbsd-current/gnu/llvm/lldb/source/Plugins/Process/FreeBSD/ |
H A D | NativeRegisterContextFreeBSD.cpp | 20 #include <sys/ptrace.h>
|
/openbsd-current/gnu/llvm/lldb/source/Plugins/Process/NetBSD/ |
H A D | NativeRegisterContextNetBSD.cpp | 20 #include <sys/ptrace.h>
|
/openbsd-current/regress/lib/libc/sys/ |
H A D | t_ptrace.c | 33 #include <sys/ptrace.h> 79 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 0, NULL, 0) == -1); 93 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 1, NULL, 0) == -1); 118 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 1, NULL, 0) == -1); 130 ATF_REQUIRE_ERRNO(EINVAL, ptrace(PT_ATTACH, getpid(), NULL, 0) == -1); 176 ptrace(PT_ATTACH, getppid(), NULL, 0) == -1); 213 ATF_REQUIRE(ptrace(PT_TRACE_ME, 0, NULL, 0) == 0); 217 ATF_REQUIRE_ERRNO(EBUSY, ptrace(PT_TRACE_ME, 0, NULL, 0) == -1);
|