* linux-nat.c (struct simple_pid_list): Add status.
authorDaniel Jacobowitz <drow@false.org>
Mon, 8 Jan 2007 21:09:47 +0000 (21:09 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 8 Jan 2007 21:09:47 +0000 (21:09 +0000)
commit3d799a954241be52d355c2cf9da71da8e90b0c6a
tree61387a43b74a21649956d6f2021ce55e28a0f8ec
parent9acbedc0c0f0d09cddb633a090ceec409f57f87a
* linux-nat.c (struct simple_pid_list): Add status.
(add_to_pid_list): Record the PID's status.
(linux_record_stopped_pid): Likewise.  Make static.
(pull_pid_from_list): Return the saved status.
(linux_nat_handle_extended): Deleted.
(linux_handle_extended_wait): Combine with linux_nat_handle_extended.
Make static.  Handle non-SIGSTOP for a new thread's first signal.
(flush_callback): Handle unexpected pending signals.
(linux_nat_wait): Update calls to changed functions.
* linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
Remove prototypes for newly static functions.

* gdb.threads/sigthread.c, gdb.threads/sigthread.exp: New.
gdb/ChangeLog
gdb/linux-nat.c
gdb/linux-nat.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/sigthread.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/sigthread.exp [new file with mode: 0644]