Lines Matching defs:lwpid
285 static int kill_lwp (unsigned long lwpid, int signo);
1037 int lwpid = ptid.lwp ();
1039 if (ptrace (PTRACE_ATTACH, lwpid, (PTRACE_TYPE_ARG3) 0, (PTRACE_TYPE_ARG4) 0)
1049 if (linux_proc_pid_is_stopped (lwpid))
1066 kill_lwp (lwpid, SIGSTOP);
1071 ptrace (PTRACE_CONT, lwpid, (PTRACE_TYPE_ARG3) 0, (PTRACE_TYPE_ARG4) 0);
1124 int lwpid = ptid.lwp ();
1127 threads_debug_printf ("Found new lwp %d", lwpid);
1136 || (err == EPERM && linux_proc_pid_is_gone (lwpid)))
1139 lwpid, err, safe_strerror (err));
1145 error (_("Cannot attach to lwp %d: %s"), lwpid, reason.c_str ());
1220 int wstat, lwpid;
1223 lwpid = wait_for_event_filtered (pid_ptid, pid_ptid, &wstat, __WALL);
1224 gdb_assert (lwpid > 0);
1226 lwp = find_lwp_pid (ptid_t (lwpid));
1319 int lwpid = thr->id.lwp ();
1323 threads_debug_printf ("killing lwp %d, for pid: %d", lwpid, pid);
1343 res = my_waitpid (lwpid, &wstat, 0);
1345 res = my_waitpid (lwpid, &wstat, __WCLONE);
1520 int lwpid = thread->id.lwp ();
1521 if (ptrace (PTRACE_DETACH, lwpid, (PTRACE_TYPE_ARG3) 0,
1534 ret = my_waitpid (lwpid, &status, __WALL);
1538 lwpid, safe_strerror (errno));
1544 lwpid, status);
1989 linux_process_target::low_get_thread_area (int lwpid, CORE_ADDR *addrp)
2242 linux_process_target::filter_event (int lwpid, int wstat)
2248 child = find_lwp_pid (ptid_t (lwpid));
2264 lwpid);
2266 child = add_lwp (ptid_t (lwpid, lwpid));
2279 lwpid, status_to_str (wstat).c_str ());
2280 add_to_pid_list (&stopped_pids, lwpid, wstat);
2293 if (proc->pid == lwpid)
2297 lwpid);
2299 child = add_lwp (ptid_t (lwpid, lwpid));
2319 threads_debug_printf ("%d exited", lwpid);
2378 linux_enable_event_reporting (lwpid, options);
3673 kill_lwp (unsigned long lwpid, int signo)
3678 ret = syscall (__NR_tkill, lwpid, signo);