/netbsd-current/external/gpl3/gdb.old/dist/gdb/ |
H A D | x86-linux-nat.c | 43 #include "nat/linux-ptrace.h" 129 cs = ptrace (PTRACE_PEEKUSER, tid, 138 ds = ptrace (PTRACE_PEEKUSER, tid, 153 if (ptrace (PTRACE_GETFPXREGS, tid, 0, (int) &fpxregs) < 0) 171 if (ptrace (PTRACE_GETREGSET, tid, 286 The values returned by this ptrace call should be part of the 308 if (ptrace (PTRACE_GET_THREAD_AREA, pid, addr, &desc) < 0)
|
H A D | arm-nbsd-nat.c | 29 #include <sys/ptrace.h> 41 #include "inf-ptrace.h" 143 ret = ptrace (PT_GETREGS, regcache->ptid ().pid (), 160 int ret = ptrace (PT_GETFPREGS, regcache->ptid ().pid (), 191 ret = ptrace (PT_GETFPREGS, regcache->ptid ().pid (), 233 ret = ptrace (PT_GETREGS, regcache->ptid ().pid (), 287 ret = ptrace (PT_SETREGS, regcache->ptid ().pid (), 329 ret = ptrace (PT_SETREGS, regcache->ptid ().pid (), 341 int ret = ptrace (PT_GETFPREGS, regcache->ptid ().pid (), 363 ret = ptrace (PT_SETFPREG [all...] |
H A D | arm-linux-nat.c | 41 #include "nat/linux-ptrace.h" 121 /* Get the thread id for the ptrace call. */ 132 ret = ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, &iov); 135 ret = ptrace (PT_GETFPREGS, tid, 0, fp); 157 /* Get the thread id for the ptrace call. */ 169 ret = ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, &iov); 172 ret = ptrace (PT_GETFPREGS, tid, 0, fp); 193 ret = ptrace (PTRACE_SETREGSET, tid, NT_FPREGSET, &iov); 196 ret = ptrace (PTRACE_SETFPREGS, tid, 0, fp); 211 /* Get the thread id for the ptrace cal [all...] |
H A D | hppa-obsd-nat.c | 26 #include <sys/ptrace.h> 30 #include "inf-ptrace.h" 206 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 216 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 233 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 238 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 246 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 251 if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
H A D | hppa-nbsd-nat.c | 25 #include <sys/ptrace.h> 29 #include "inf-ptrace.h" 179 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) 189 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1) 209 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) 214 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) 222 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1) 227 if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
|
H A D | riscv-linux-nat.c | 30 #include <sys/ptrace.h> 228 if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, 248 if (ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, 258 /* TODO: Need to add a ptrace call for this. */ 285 if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, 292 if (ptrace (PTRACE_SETREGSET, tid, NT_PRSTATUS, 311 if (ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, 318 if (ptrace (PTRACE_SETREGSET, tid, NT_FPREGSET,
|
H A D | m68k-linux-nat.c | 55 #include "inf-ptrace.h" 85 /* Which ptrace request retrieves which registers? 131 val = ptrace (PTRACE_PEEKUSER, tid, regaddr, 0); 185 ptrace (PTRACE_POKEUSER, tid, regaddr, val); 261 if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) 285 if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) 290 if (ptrace (PTRACE_SETREGS, tid, 0, (int) ®s) < 0) 365 if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0) 379 if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0) 384 if (ptrace (PTRACE_SETFPREG [all...] |
H A D | i386-fbsd-nat.c | 26 #include <sys/ptrace.h> 94 /* An addres of (caddr_t) 1 tells ptrace to continue from where it 97 if (ptrace (request, pid, (caddr_t) 1, 99 perror_with_name (("ptrace")); 153 if (ptrace (PT_GETXSTATE_INFO, inferior_ptid.pid (),
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/nat/ |
H A D | netbsd-nat.c | 25 #include <sys/ptrace.h> 174 if (ptrace (PT_GET_EVENT_MASK, pid, &events, sizeof (events)) == -1) 175 perror_with_name (("ptrace")); 180 if (ptrace (PT_SET_EVENT_MASK, pid, &events, sizeof (events)) == -1) 181 perror_with_name (("ptrace")); 195 if (ptrace (PT_GET_SIGINFO, pid, &psi, sizeof (psi)) == -1) 207 if (ptrace (PT_SET_SIGINFO, pid, &psi, sizeof (psi)) == -1)
|
/netbsd-current/external/gpl3/gdb/dist/gdb/ |
H A D | x86-linux-nat.c | 43 #include "nat/linux-ptrace.h" 128 cs = ptrace (PTRACE_PEEKUSER, tid, 137 ds = ptrace (PTRACE_PEEKUSER, tid, 152 if (ptrace (PTRACE_GETFPXREGS, tid, 0, (int) &fpxregs) < 0) 170 if (ptrace (PTRACE_GETREGSET, tid, 286 The values returned by this ptrace call should be part of the 308 if (ptrace (PTRACE_GET_THREAD_AREA, pid, addr, &desc) < 0)
|
H A D | arm-netbsd-nat.c | 27 #include <sys/ptrace.h> 37 #include "inf-ptrace.h" 137 ret = ptrace (PT_GETREGS, regcache->ptid ().pid (), 155 int ret = ptrace (PT_GETFPREGS, regcache->ptid ().pid (), 187 ret = ptrace (PT_GETFPREGS, regcache->ptid ().pid (), 230 ret = ptrace (PT_GETREGS, regcache->ptid ().pid (), 288 ret = ptrace (PT_SETREGS, regcache->ptid ().pid (), 331 ret = ptrace (PT_SETREGS, regcache->ptid ().pid (), 343 int ret = ptrace (PT_GETFPREGS, regcache->ptid ().pid (), 365 ret = ptrace (PT_SETFPREG [all...] |
H A D | arm-linux-nat.c | 41 #include "nat/linux-ptrace.h" 121 /* Get the thread id for the ptrace call. */ 132 ret = ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, &iov); 135 ret = ptrace (PT_GETFPREGS, tid, 0, fp); 157 /* Get the thread id for the ptrace call. */ 169 ret = ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, &iov); 172 ret = ptrace (PT_GETFPREGS, tid, 0, fp); 193 ret = ptrace (PTRACE_SETREGSET, tid, NT_FPREGSET, &iov); 196 ret = ptrace (PTRACE_SETFPREGS, tid, 0, fp); 211 /* Get the thread id for the ptrace cal [all...] |
H A D | aarch64-linux-nat.c | 38 #include "nat/aarch64-sve-linux-ptrace.h" 45 #include <asm/ptrace.h> 57 #include "nat/aarch64-mte-linux-ptrace.h" 97 bool low_siginfo_fixup (siginfo_t *ptrace, gdb_byte *inf, int direction) 147 ret = ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, &iovec); 184 ret = ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, &iovec); 199 ret = ptrace (PTRACE_SETREGSET, tid, NT_PRSTATUS, &iovec); 227 ret = ptrace (PTRACE_GETREGSET, tid, NT_ARM_VFP, &iovec); 239 ret = ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, &iovec); 273 ret = ptrace (PTRACE_GETREGSE [all...] |
H A D | arc-linux-nat.c | 76 /* Read general registers from target process/thread (via ptrace) 89 if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, (void *) &iov) < 0) 96 /* Read ARC v2 registers from target process/thread (via ptrace) 109 if (ptrace (PTRACE_GETREGSET, tid, NT_ARC_V2, (void *) &iov) < 0) 128 if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, (void *) &iov) < 0) 134 if (ptrace (PTRACE_SETREGSET, tid, NT_PRSTATUS, (void *) &iov) < 0) 152 if (ptrace (PTRACE_GETREGSET, tid, NT_ARC_V2, (void *) &iov) < 0) 158 if (ptrace (PTRACE_SETREGSET, tid, NT_ARC_V2, (void *) &iov) < 0) 301 if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)
|
H A D | hppa-obsd-nat.c | 26 #include <sys/ptrace.h> 30 #include "inf-ptrace.h" 206 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 216 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 233 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 238 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) 246 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) 251 if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
H A D | riscv-linux-nat.c | 30 #include <sys/ptrace.h> 228 if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, 248 if (ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, 258 /* TODO: Need to add a ptrace call for this. */ 285 if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, 292 if (ptrace (PTRACE_SETREGSET, tid, NT_PRSTATUS, 311 if (ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, 318 if (ptrace (PTRACE_SETREGSET, tid, NT_FPREGSET,
|
H A D | hppa-netbsd-nat.c | 25 #include <sys/ptrace.h> 29 #include "inf-ptrace.h" 179 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) 189 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1) 209 if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) 214 if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, lwp) == -1) 222 if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1) 227 if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
|
H A D | m68k-linux-nat.c | 55 #include "inf-ptrace.h" 85 /* Which ptrace request retrieves which registers? 131 val = ptrace (PTRACE_PEEKUSER, tid, regaddr, 0); 185 ptrace (PTRACE_POKEUSER, tid, regaddr, val); 261 if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) 285 if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) 290 if (ptrace (PTRACE_SETREGS, tid, 0, (int) ®s) < 0) 365 if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0) 379 if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0) 384 if (ptrace (PTRACE_SETFPREG [all...] |
H A D | riscv-fbsd-nat.c | 25 #include <sys/ptrace.h> 31 #include "inf-ptrace.h"
|
/netbsd-current/tests/lib/libc/sys/ |
H A D | t_ptrace_signal_wait.h | 49 FORKEE_ASSERT(ptrace(PT_TRACE_ME, 0, NULL, 0) != -1); 73 ptrace(PT_GET_PROCESS_STATE, child, &state, slen) == -1); 79 DPRINTF("Before calling ptrace(2) with PT_GET_SIGINFO for " 81 SYSCALL_REQUIRE(ptrace(PT_GET_SIGINFO, child, &info, 95 ptrace(PT_GET_PROCESS_STATE, child, &state, slen) != -1); 100 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1); 157 FORKEE_ASSERT(ptrace(PT_TRACE_ME, 0, NULL, 0) != -1); 181 DPRINTF("Before calling ptrace(2) with PT_GET_SIGINFO for child\n"); 183 ptrace(PT_GET_SIGINFO, child, &info, sizeof(info)) != -1); 195 SYSCALL_REQUIRE(ptrace(PT_CONTINU [all...] |
H A D | t_ptrace_amd64_wait.h | 54 FORKEE_ASSERT(ptrace(PT_TRACE_ME, 0, NULL, 0) != -1); 70 SYSCALL_REQUIRE(ptrace(PT_GETREGS, child, &r, 0) != -1); 103 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
|
/netbsd-current/external/gpl3/gdb/dist/gdb/nat/ |
H A D | netbsd-nat.c | 25 #include <sys/ptrace.h> 174 if (ptrace (PT_GET_EVENT_MASK, pid, &events, sizeof (events)) == -1) 175 perror_with_name (("ptrace")); 180 if (ptrace (PT_SET_EVENT_MASK, pid, &events, sizeof (events)) == -1) 181 perror_with_name (("ptrace")); 195 if (ptrace (PT_GET_SIGINFO, pid, &psi, sizeof (psi)) == -1) 207 if (ptrace (PT_SET_SIGINFO, pid, &psi, sizeof (psi)) == -1) 234 int rv = ptrace (PT_IO, pid, &io, 0); 275 int rv = ptrace (PT_IO, pid, &io, 0);
|
/netbsd-current/sys/compat/linux/arch/mips/ |
H A D | linux_ptrace.c | 38 #include <sys/ptrace.h>
|
/netbsd-current/sys/compat/freebsd/ |
H A D | freebsd_ptrace.c | 80 #include <sys/ptrace.h>
|
/netbsd-current/sys/arch/aarch64/include/ |
H A D | ptrace.h | 1 /* $NetBSD: ptrace.h,v 1.12 2020/09/07 18:29:48 ryo Exp $ */ 38 * AARCH64-dependent ptrace definitions. 90 #include <arm/ptrace.h>
|