Lines Matching refs:pid
108 int pid; in child_wait() local
116 pid = wait (&status); in child_wait()
124 if (pid == -1) in child_wait()
140 if (target_has_exited (pid, status, &exit_status)) in child_wait()
146 if (!target_thread_alive (pid_to_ptid (pid))) in child_wait()
149 return pid_to_ptid (pid); in child_wait()
151 } while (pid != PIDGET (inferior_ptid)); /* Some other child died or stopped */ in child_wait()
154 return pid_to_ptid (pid); in child_wait()
168 pid_t pid = PIDGET (ptid); in child_thread_alive() local
170 return (kill (pid, 0) != -1); in child_thread_alive()
181 int pid; in child_attach() local
188 pid = strtol (args, &dummy, 0); in child_attach()
190 if ((pid == 0) && (args == dummy)) in child_attach()
193 if (pid == getpid ()) /* Trying to masturbate? */ in child_attach()
202 target_pid_to_str (pid_to_ptid (pid))); in child_attach()
205 target_pid_to_str (pid_to_ptid (pid))); in child_attach()
210 attach (pid); in child_attach()
212 inferior_ptid = pid_to_ptid (pid); in child_attach()
222 child_post_attach (int pid) in child_post_attach() argument
241 int pid = PIDGET (inferior_ptid); in child_detach() local
249 target_pid_to_str (pid_to_ptid (pid))); in child_detach()
304 ptrace_him (int pid) in ptrace_him() argument
314 target_acknowledge_created_inferior (pid); in ptrace_him()
325 target_post_startup_inferior (pid_to_ptid (pid)); in ptrace_him()
357 child_acknowledge_created_inferior (int pid) in child_acknowledge_created_inferior() argument
368 child_insert_fork_catchpoint (int pid) in child_insert_fork_catchpoint() argument
377 child_remove_fork_catchpoint (int pid) in child_remove_fork_catchpoint() argument
386 child_insert_vfork_catchpoint (int pid) in child_insert_vfork_catchpoint() argument
395 child_remove_vfork_catchpoint (int pid) in child_remove_vfork_catchpoint() argument
413 child_insert_exec_catchpoint (int pid) in child_insert_exec_catchpoint() argument
422 child_remove_exec_catchpoint (int pid) in child_remove_exec_catchpoint() argument
441 child_has_exited (int pid, int wait_status, int *exit_status) in child_has_exited() argument
511 child_pid_to_exec_file (int pid) in child_pid_to_exec_file() argument