Lines Matching refs:ptrace
30 /* Use <sys/ptrace.h> directly, instead of "nat/gdb_ptrace.h". Otherwise,
33 #include <sys/ptrace.h>
490 if (ptrace (request, tp->ptid.pid (), NULL, tp->ptid.lwp ()) == -1)
491 perror_with_name (("ptrace"));
499 if (ptrace (PT_RESUME, tp->ptid.pid (), NULL, tp->ptid.lwp ()) == -1)
500 perror_with_name (("ptrace"));
506 if (ptrace (PT_SETSTEP, tp->ptid.pid (), NULL, tp->ptid.lwp ()) == -1)
507 perror_with_name (("ptrace"));
512 if (ptrace (PT_CLEARSTEP, tp->ptid.pid (), NULL, tp->ptid.lwp ()) == -1)
513 perror_with_name (("ptrace"));
521 /* An address of (void *)1 tells ptrace to continue from
524 if (ptrace (request, ptid.pid (), (void *)1, gdb_signal_to_host (signal)) == -1)
525 perror_with_name (("ptrace"));
595 if (ptrace (PT_GET_SIGINFO, pid, &psi, sizeof (psi)) == -1)
596 perror_with_name (("ptrace"));
622 if (ptrace (PT_GET_PROCESS_STATE, pid, &pst, sizeof (pst)) == -1)
623 perror_with_name (("ptrace"));
648 if (ptrace (PT_CONTINUE, pid, (void *) 1, 0) == -1)
649 perror_with_name (("ptrace"));
740 /* Ignore the arguments. inf-ptrace.c will use PT_SYSCALL which
800 if (ptrace (PT_DUMPCORE, pid, const_cast<char *>(filename),
802 perror_with_name (("ptrace"));