Lines Matching refs:status

162   int child_pid, ret, status;  in linux_test_for_tracefork()  local
172 ret = waitpid (child_pid, &status, 0); in linux_test_for_tracefork()
177 if (! WIFSTOPPED (status)) in linux_test_for_tracefork()
178 error ("linux_test_for_tracefork: waitpid: unexpected status %d.", status); in linux_test_for_tracefork()
186 waitpid (child_pid, &status, 0); in linux_test_for_tracefork()
196 ret = waitpid (child_pid, &status, 0); in linux_test_for_tracefork()
197 if (ret == child_pid && WIFSTOPPED (status) in linux_test_for_tracefork()
198 && status >> 16 == PTRACE_EVENT_FORK) in linux_test_for_tracefork()
212 if (WIFSTOPPED (status)) in linux_test_for_tracefork()
215 waitpid (child_pid, &status, 0); in linux_test_for_tracefork()
313 int status; in child_follow_fork() local
316 waitpid (parent_pid, &status, __WALL); in child_follow_fork()
317 if ((status >> 16) != PTRACE_EVENT_VFORKDONE) in child_follow_fork()
319 "vfork-done", status); in child_follow_fork()
411 linux_handle_extended_wait (int pid, int status, in linux_handle_extended_wait() argument
414 int event = status >> 16; in linux_handle_extended_wait()
430 ret = waitpid (new_pid, &status, in linux_handle_extended_wait()
438 else if (!WIFSTOPPED (status) || WSTOPSIG (status) != SIGSTOP) in linux_handle_extended_wait()
440 "wait returned unexpected status 0x%x", status); in linux_handle_extended_wait()
506 int status; in kill_inferior() local
525 wait (&status); in kill_inferior()
530 ret = wait (&status); in kill_inferior()
535 while (ret == pid && WIFSTOPPED (status)) in kill_inferior()
538 ret = wait (&status); in kill_inferior()
630 status_to_str (int status) in status_to_str() argument
634 if (WIFSTOPPED (status)) in status_to_str()
636 strsignal (WSTOPSIG (status))); in status_to_str()
637 else if (WIFSIGNALED (status)) in status_to_str()
639 strsignal (WSTOPSIG (status))); in status_to_str()
641 snprintf (buf, sizeof (buf), "%d (exited)", WEXITSTATUS (status)); in status_to_str()
798 int status; in lin_lwp_attach_lwp() local
809 pid = waitpid (GET_LWP (ptid), &status, 0); in lin_lwp_attach_lwp()
813 pid = waitpid (GET_LWP (ptid), &status, __WCLONE); in lin_lwp_attach_lwp()
818 && WIFSTOPPED (status) && WSTOPSIG (status)); in lin_lwp_attach_lwp()
829 status_to_str (status)); in lin_lwp_attach_lwp()
849 int status; in linux_nat_attach() local
861 pid = waitpid (GET_PID (inferior_ptid), &status, 0); in linux_nat_attach()
867 pid = waitpid (GET_PID (inferior_ptid), &status, __WCLONE); in linux_nat_attach()
872 && WIFSTOPPED (status) && WSTOPSIG (status) == SIGSTOP); in linux_nat_attach()
877 lp->status = W_STOPCODE (SIGSTOP); in linux_nat_attach()
889 gdb_assert (lp->status == 0 || WIFSTOPPED (lp->status)); in detach_callback()
891 if (debug_linux_nat && lp->status) in detach_callback()
893 strsignal (WSTOPSIG (lp->status)), in detach_callback()
900 WSTOPSIG (lp->status)) < 0) in detach_callback()
908 status_to_str (lp->status)); in detach_callback()
912 lp->status = 0; in detach_callback()
920 gdb_assert (lp->status == 0 || WIFSTOPPED (lp->status)); in detach_callback()
929 WSTOPSIG (lp->status)) < 0) in detach_callback()
937 strsignal (WSTOPSIG (lp->status))); in detach_callback()
971 if (lp->stopped && lp->status == 0) in resume_callback()
1033 if (lp->status) in linux_nat_resume()
1091 linux_nat_handle_extended (struct lwp_info *lp, int status) in linux_nat_handle_extended() argument
1093 linux_handle_extended_wait (GET_LWP (lp->ptid), status, in linux_nat_handle_extended()
1126 int status; in wait_lwp() local
1130 gdb_assert (lp->status == 0); in wait_lwp()
1132 pid = waitpid (GET_LWP (lp->ptid), &status, 0); in wait_lwp()
1135 pid = waitpid (GET_LWP (lp->ptid), &status, __WCLONE); in wait_lwp()
1159 status_to_str (status)); in wait_lwp()
1164 if (WIFEXITED (status) || WIFSIGNALED (status)) in wait_lwp()
1187 gdb_assert (WIFSTOPPED (status)); in wait_lwp()
1190 if (WIFSTOPPED (status) && WSTOPSIG (status) == SIGTRAP && status >> 16 != 0) in wait_lwp()
1195 status); in wait_lwp()
1196 if (linux_nat_handle_extended (lp, status)) in wait_lwp()
1200 return status; in wait_lwp()
1229 gdb_assert (lp->status == 0); in stop_callback()
1245 int status; in stop_wait_callback() local
1247 status = wait_lwp (lp); in stop_wait_callback()
1248 if (status == 0) in stop_wait_callback()
1252 if (flush_mask && sigismember (flush_mask, WSTOPSIG (status))) in stop_wait_callback()
1271 if (WSTOPSIG (status) != SIGSTOP) in stop_wait_callback()
1273 if (WSTOPSIG (status) == SIGTRAP) in stop_wait_callback()
1305 if (lp->status) in stop_wait_callback()
1312 status_to_str ((int) status)); in stop_wait_callback()
1314 kill_lwp (GET_LWP (lp->ptid), WSTOPSIG (lp->status)); in stop_wait_callback()
1317 lp->status = status; in stop_wait_callback()
1329 status_to_str ((int) status), in stop_wait_callback()
1347 if (lp->status == 0) in stop_wait_callback()
1348 lp->status = status; in stop_wait_callback()
1356 status_to_str ((int) status)); in stop_wait_callback()
1358 kill_lwp (GET_LWP (lp->ptid), WSTOPSIG (status)); in stop_wait_callback()
1412 int pid, status; in flush_callback() local
1428 if (lp->status) in flush_callback()
1431 printf_unfiltered ("FC: LP has pending status %06x\n", lp->status); in flush_callback()
1432 if (WIFSTOPPED (lp->status) && sigismember (flush_mask, WSTOPSIG (lp->status))) in flush_callback()
1433 lp->status = 0; in flush_callback()
1451 lp->status); in flush_callback()
1464 return (lp->status != 0 && lp->resumed); in status_callback()
1472 return (lp->stopped == 0 || (lp->status != 0 && lp->resumed)); in running_callback()
1485 if (lp->status != 0 in count_events_callback()
1486 && WIFSTOPPED (lp->status) && WSTOPSIG (lp->status) == SIGTRAP) in count_events_callback()
1497 if (lp->step && lp->status != 0) in select_singlestep_lwp_callback()
1513 if (lp->status != 0 in select_event_lwp_callback()
1514 && WIFSTOPPED (lp->status) && WSTOPSIG (lp->status) == SIGTRAP) in select_event_lwp_callback()
1541 if (lp->status != 0 in cancel_breakpoints_callback()
1542 && WIFSTOPPED (lp->status) && WSTOPSIG (lp->status) == SIGTRAP in cancel_breakpoints_callback()
1556 lp->status = 0; in cancel_breakpoints_callback()
1565 select_event_lwp (struct lwp_info **orig_lp, int *status) in select_event_lwp() argument
1572 (*orig_lp)->status = *status; in select_event_lwp()
1608 *status = event_lp->status; in select_event_lwp()
1612 (*orig_lp)->status = 0; in select_event_lwp()
1636 int status; in child_wait() local
1647 pid = waitpid (GET_PID (ptid), &status, 0); in child_wait()
1650 pid = waitpid (GET_PID (ptid), &status, __WCLONE); in child_wait()
1656 (long) pid, status_to_str (status)); in child_wait()
1663 if (pid != -1 && !WIFSTOPPED (status) && pid != GET_PID (inferior_ptid)) in child_wait()
1679 if (pid != -1 && WIFSTOPPED (status) && WSTOPSIG (status) == SIGSTOP in child_wait()
1688 if (pid != -1 && WIFSTOPPED (status) && WSTOPSIG (status) == SIGTRAP in child_wait()
1689 && status >> 16 != 0) in child_wait()
1691 linux_handle_extended_wait (pid, status, ourstatus); in child_wait()
1724 store_waitstatus (ourstatus, status); in child_wait()
1758 int status = 0; in linux_nat_wait() local
1784 status = lp->status; in linux_nat_wait()
1785 lp->status = 0; in linux_nat_wait()
1787 if (debug_linux_nat && status) in linux_nat_wait()
1790 status_to_str (status), in linux_nat_wait()
1809 status = lp->status; in linux_nat_wait()
1810 lp->status = 0; in linux_nat_wait()
1812 if (debug_linux_nat && status) in linux_nat_wait()
1815 status_to_str (status), in linux_nat_wait()
1825 if (status && lp->signalled) in linux_nat_wait()
1857 while (status == 0) in linux_nat_wait()
1861 lwpid = waitpid (pid, &status, options); in linux_nat_wait()
1870 (long) lwpid, status_to_str (status)); in linux_nat_wait()
1884 if (WIFSTOPPED (status) && !lp) in linux_nat_wait()
1887 status = 0; in linux_nat_wait()
1895 if (!WIFSTOPPED (status) && !lp) in linux_nat_wait()
1897 status = 0; in linux_nat_wait()
1916 gdb_assert (WIFSTOPPED (status) in linux_nat_wait()
1917 && WSTOPSIG (status) == SIGSTOP); in linux_nat_wait()
1934 if (WIFSTOPPED (status) && WSTOPSIG (status) == SIGTRAP && status >> 16 != 0) in linux_nat_wait()
1939 status); in linux_nat_wait()
1940 if (linux_nat_handle_extended (lp, status)) in linux_nat_wait()
1942 status = 0; in linux_nat_wait()
1948 if ((WIFEXITED (status) || WIFSIGNALED (status)) && num_lwps > 1) in linux_nat_wait()
1992 status = 0; in linux_nat_wait()
2023 status = 0; in linux_nat_wait()
2030 && WIFSTOPPED (status) && WSTOPSIG (status) == SIGSTOP) in linux_nat_wait()
2054 status = 0; in linux_nat_wait()
2072 gdb_assert (status == 0); in linux_nat_wait()
2087 if (WIFSTOPPED (status)) in linux_nat_wait()
2089 int signo = target_signal_from_host (WSTOPSIG (status)); in linux_nat_wait()
2110 status = 0; in linux_nat_wait()
2129 status_to_str (status), target_pid_to_str (lp->ptid)); in linux_nat_wait()
2143 select_event_lwp (&lp, &status); in linux_nat_wait()
2153 if (WIFSTOPPED (status) && WSTOPSIG (status) == SIGTRAP) in linux_nat_wait()
2170 store_waitstatus (ourstatus, status); in linux_nat_wait()