2012-07-20 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Fri, 20 Jul 2012 17:27:29 +0000 (17:27 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 20 Jul 2012 17:27:29 +0000 (17:27 +0000)
commit64776a0b2d88d40f308304194d26b766bb12b7e3
treef320794b35f6aed58723c26ccbdd281a72d1edb0
parent09826ec59df0c34fb49e483b88436b0ea0a7bb30
2012-07-20  Pedro Alves  <palves@redhat.com>

PR threads/11692
PR gdb/12203

gdb/
* infrun.c (handle_inferior_event) <new thread>: Don't special
case minus_one_ptid.
<TARGET_WAITKIND_SPURIOUS>: Ditto.
* linux-thread-db.c (thread_get_info_callback): Don't return early
if the thread is zombie.
(thread_from_lwp): Change return type to void.  Rewrite stale
comment.
(attach_thread): Don't return early if the thread is zombie,
instead set its "dying" flag.
(thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
(find_new_threads_callback): Don't return early if the thread is
zombie.

gdb/testsuite/
* gdb.threads/create-fail.c: New file.
* gdb.threads/create-fail.exp: New file.
gdb/ChangeLog
gdb/infrun.c
gdb/linux-thread-db.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/create-fail.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/create-fail.exp [new file with mode: 0644]