Lines Matching refs:tid
75 __libdwfl_ptrace_attach (pid_t tid, bool *tid_was_stoppedp)
77 if (ptrace (PTRACE_ATTACH, tid, NULL, NULL) != 0)
82 *tid_was_stoppedp = linux_proc_pid_is_stopped (tid);
91 syscall (__NR_tkill, tid, SIGSTOP);
92 ptrace (PTRACE_CONT, tid, NULL, NULL);
97 if (waitpid (tid, &status, __WALL) != tid || !WIFSTOPPED (status))
100 ptrace (PTRACE_DETACH, tid, NULL, NULL);
107 if (ptrace (PTRACE_CONT, tid, NULL,
111 ptrace (PTRACE_DETACH, tid, NULL, NULL);
196 pid_t tid = pid_arg->tid_attached;
198 assert (tid > 0);
217 *result = ptrace (PTRACE_PEEKDATA, tid, (void *) (uintptr_t) addr, NULL);
232 *result = ptrace (PTRACE_PEEKDATA, tid, (void *) (uintptr_t) addr, NULL);
281 pid_t tid = tidl;
282 if (tidl <= 0 || (end && *end) || tid != tidl)
288 return tid;
293 pid_getthread (Dwfl *dwfl __attribute__ ((unused)), pid_t tid,
297 if (kill (tid, 0) < 0)
328 pid_t tid = INTUSE(dwfl_thread_tid) (thread);
330 && ! __libdwfl_ptrace_attach (tid, &pid_arg->tid_was_stopped))
332 pid_arg->tid_attached = tid;
335 return ebl_set_initial_registers_tid (ebl, tid,
352 __libdwfl_ptrace_detach (pid_t tid, bool tid_was_stopped)
359 ptrace (PTRACE_DETACH, tid, NULL,
367 pid_t tid = INTUSE(dwfl_thread_tid) (thread);
368 assert (pid_arg->tid_attached == tid);
372 __libdwfl_ptrace_detach (tid, pid_arg->tid_was_stopped);
507 __libdwfl_ptrace_attach (pid_t tid __attribute__ ((unused)),
517 __libdwfl_ptrace_detach (pid_t tid __attribute__ ((unused)),