This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR threads/11692 PR gdb/12203, handle_inferior_event assertion when pthread_create fails


On 07/05/2012 08:31 PM, Pedro Alves wrote:

> 2012-07-05  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.

I've retested and checked this in now.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]