gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 27 May 2011 16:55:39 +0000 (16:55 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 27 May 2011 16:55:39 +0000 (16:55 +0000)
commit432b4d03ad0f23970315e9f9dec080ab4a9ab94b
treedca5dae7862561846b88a6eb4f7bcfb562685d46
parentb0f260d61e5b5b3de1fcac6042f4b225bf132d45
gdb/
Fix PR 10970, PR 12702.
* linux-nat.c (linux_lwp_is_zombie): New function.
(wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.

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