Lines Matching defs:ptid
41 gdb_ptrace (PTRACE_TYPE_ARG1 request, ptid_t ptid, PTRACE_TYPE_ARG3 addr,
50 data = ptid.lwp ();
51 return ptrace (request, ptid.pid (), addr, data);
53 pid_t pid = get_ptrace_pid (ptid);
107 ptid_t ptid (pid);
111 thread_info *thr = add_thread_silent (this, ptid);
120 post_startup_inferior (ptid);
180 target, it should decorate the ptid later with more info. */
186 set_executing (this, thr->ptid, true);
249 get_ptrace_pid (ptid_t ptid)
255 pid = ptid.lwp ();
257 pid = ptid.pid ();
262 /* Resume execution of thread PTID, or all threads if PTID is -1. If
267 inf_ptrace_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
271 if (minus_one_ptid == ptid)
274 ptid = ptid_t (inferior_ptid.pid ());
295 gdb_ptrace (request, ptid, (PTRACE_TYPE_ARG3)1, gdb_signal_to_host (signal));
300 /* Wait for the child specified by PTID to do something. Return the
305 inf_ptrace_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
319 pid = gdb::waitpid (ptid.pid (), &status, options);
337 if (ptid == minus_one_ptid && save_errno == ECHILD)
368 inf_ptrace_peek_poke (ptid_t ptid, gdb_byte *readbuf,
399 buf.word = gdb_ptrace (PT_READ_I, ptid,
410 gdb_ptrace (PT_WRITE_D, ptid, (PTRACE_TYPE_ARG3)(uintptr_t) addr,
417 gdb_ptrace (PT_WRITE_I, ptid, (PTRACE_TYPE_ARG3)(uintptr_t) addr,
436 ptid_t ptid = inferior_ptid;
460 if (gdb_ptrace (PT_IO, ptid, (caddr_t)&piod, 0) == 0)
473 *xfered_len = inf_ptrace_peek_poke (ptid, readbuf, writebuf,
496 if (gdb_ptrace (PT_IO, ptid, (caddr_t)&piod, 0) == 0)
514 /* Return non-zero if the thread specified by PTID is alive. */
517 inf_ptrace_target::thread_alive (ptid_t ptid)
520 return (::kill (ptid.pid (), 0) != -1);
536 inf_ptrace_target::pid_to_str (ptid_t ptid)
538 return normal_pid_to_str (ptid);