GDBserver

Macros
gdb_wait.h File Reference

Go to the source code of this file.

## Macros
#define | WIFEXITED(w) (((w)&0377) == 0)
#define | WIFSIGNALED(w) (((w)&0377) != 0177 && ((w)&~0377) == 0)
#define | WIFSTOPPED(w) (((w)&0377) == 0177)
#define | WEXITSTATUS(w) (((w) >> 8) & 0377) /* same as WRETCODE */
#define | WTERMSIG(w) ((w) & 0177)
#define | WSTOPSIG WEXITSTATUS
#define | WSETEXIT(w, status) ((w) = (0 | ((status) << 8)))
#define | W_STOPCODE(sig) ((sig) << 8 | 0x7f)
#define | WSETSTOP(w, sig) ((w) = W_STOPCODE(sig))
#define | WNOHANG 1 /* Don't block waiting. */
#define | WUNTRACED 2 /* Report status of stopped children. */
#define | __WCLONE 0x80000000 /* Wait for cloned process. */

## Macro Definition Documentation

## ◆ __WCLONE

#define __WCLONE 0x80000000 /* Wait for cloned process. */

Definition at line 110 of file gdb_wait.h.

Referenced by kill_wait_lwp().

## ◆ W_STOPCODE

#define W_STOPCODE | ( |  | sig | ) | ((sig) << 8 | 0x7f)

Definition at line 89 of file gdb_wait.h.

Referenced by dequeue_one_deferred_signal(), and linux_stabilize_threads().

## ◆ WEXITSTATUS

#define WEXITSTATUS | ( |  | w | ) | (((w) >> 8) & 0377) /* same as WRETCODE */

Definition at line 67 of file gdb_wait.h.

Referenced by linux_wait_1(), lynx_wait_1(), mark_lwp_dead(), mnsh_maybe_mourn_peer(), nto_wait(), spu_wait(), and status_to_str().

## ◆ WIFEXITED

#define WIFEXITED | ( |  | w | ) | (((w)&0377) == 0)

Definition at line 44 of file gdb_wait.h.

Referenced by linux_detach_one_lwp(), linux_join(), linux_low_filter_event(), linux_wait_1(), lwp_is_marked_dead(), lynx_wait_1(), mark_lwp_dead(), mnsh_maybe_mourn_peer(), spu_join(), spu_kill(), and spu_wait().

## ◆ WIFSIGNALED

#define WIFSIGNALED | ( |  | w | ) | (((w)&0377) != 0177 && ((w)&~0377) == 0)

Definition at line 48 of file gdb_wait.h.

Referenced by linux_detach_one_lwp(), linux_join(), linux_low_filter_event(), linux_ptrace_test_ret_to_nx(), linux_wait_1(), lwp_is_marked_dead(), lynx_wait_1(), mark_lwp_dead(), mnsh_maybe_mourn_peer(), spu_join(), spu_kill(), and status_to_str().

## ◆ WIFSTOPPED

#define WIFSTOPPED | ( |  | w | ) | (((w)&0377) == 0177)

Definition at line 62 of file gdb_wait.h.

Referenced by get_detach_signal(), handle_extended_wait(), kill_wait_lwp(), linux_attach(), linux_check_ptrace_features(), linux_low_filter_event(), linux_ptrace_test_ret_to_nx(), linux_resume_one_thread(), linux_test_for_tracefork(), linux_wait_1(), linux_wstatus_maybe_breakpoint(), lynx_wait_1(), maybe_move_out_of_jump_pad(), spu_wait(), and status_to_str().

## ◆ WNOHANG

#define WNOHANG 1 /* Don't block waiting. */

Definition at line 102 of file gdb_wait.h.

Referenced by linux_wait_1(), linux_wait_for_event_filtered(), lynx_waitpid(), mnsh_maybe_mourn_peer(), nto_wait(), and spu_wait().

## ◆ WSETEXIT

#define WSETEXIT | ( |  | w,
|  |  | status
| ) |  | ((w) = (0 | ((status) << 8)))

Definition at line 84 of file gdb_wait.h.

## ◆ WSETSTOP

#define WSETSTOP | ( |  | w,
|  |  | sig
| ) |  | ((w) = W_STOPCODE(sig))

Definition at line 93 of file gdb_wait.h.

## ◆ WSTOPSIG

#define WSTOPSIG WEXITSTATUS

Definition at line 75 of file gdb_wait.h.

Referenced by dequeue_one_deferred_signal(), enqueue_one_deferred_signal(), get_detach_signal(), handle_extended_wait(), linux_attach(), linux_low_filter_event(), linux_ptrace_test_ret_to_nx(), linux_resume_one_thread(), linux_set_resume_request(), linux_wait_1(), linux_wstatus_maybe_breakpoint(), lynx_wait_1(), maybe_move_out_of_jump_pad(), move_out_of_jump_pad_callback(), spu_wait(), and status_to_str().

## ◆ WTERMSIG

#define WTERMSIG | ( |  | w | ) | ((w) & 0177)

Definition at line 71 of file gdb_wait.h.

Referenced by linux_ptrace_test_ret_to_nx(), linux_wait_1(), lynx_wait_1(), mark_lwp_dead(), mnsh_maybe_mourn_peer(), spu_wait(), and status_to_str().

## ◆ WUNTRACED

#define WUNTRACED 2 /* Report status of stopped children. */

Definition at line 106 of file gdb_wait.h.

Referenced by lynx_waitpid().