gdb/
authorPedro Alves <palves@redhat.com>
Sat, 28 Jun 2008 11:15:34 +0000 (11:15 +0000)
committerPedro Alves <palves@redhat.com>
Sat, 28 Jun 2008 11:15:34 +0000 (11:15 +0000)
commit84e46146f7e8f26eafd2e9a6f0bc229423e0950c
tree0e93332ad81dc099f27fca437dae42091bde8e86
parent0f8d4a2f6e8a4b83340e6e80a00062c12d31ecfb
gdb/
2008-06-28  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (enum sigchld_state): New.
(linux_nat_async_events_state): Renamed from
linux_nat_async_events_enabled.
(linux_nat_event_pipe_push, my_waitpid): Adjust.
(sigchld_default_action): New.
(lin_lwp_attach_lwp): Adjust.  Call linux_nat_async_events
unconditionally.
(linux_nat_create_inferior): Set events state to sigchld_default
state.
(linux_nat_resume): Adjust.
(linux_nat_wait): Call linux_nat_async_events unconditionally.
(sigchld_handler): Adjust.
(linux_nat_async_mask): Don't set SIGCHLD actions here.
(get_pending_events): Adjust.
(linux_nat_async_events): Rewrite to handle enum sigchld_state
instead of a boolean.
(linux_nat_async): Adjust.
(_initialize_linux_nat): Capture default SIGCHLD action into
sigchld_default_action.

gdb/testsuite/
2008-06-28  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/sigchld.c, gdb.base/sigchld.exp: New test.
gdb/ChangeLog
gdb/linux-nat.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/sigchld.c [new file with mode: 0644]
gdb/testsuite/gdb.base/sigchld.exp [new file with mode: 0644]