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: Make the remote target always register a thread


On Thu, Jun 26, 2008 at 12:08:08AM +0100, Pedro Alves wrote:
> (The crash will still be there for other targets that
> don't always register the main thread)

Be nice to get rid of the crash, one way or another.

> 2008-06-25  Pedro Alves  <pedro@codesourcery.com>
> 
> 	* infrun.c (start_remote): Don't clear thread list here.
> 	* monitor.c (monitor_open): Clear thread list here.
> 	
> 	* remote.c (record_currthread): Upgrade the main thread and its
> 	entry in the thread list if this is the first time we hear about
> 	threads.
> 	(remote_thread_alive): Consider magic_null_ptid or a ptid without
> 	a tid member always alive.
> 	(remote_find_new_threads): Don't update the main thread here.
> 	(remote_start_remote): Clear thread list here.  Always add the
> 	main thread.
> 	(extended_remote_attach_1): Add the main thread here.
> 	(extended_remote_mourn_1): Re-add the main thread here.
> 	(extended_remote_create_inferior_1): Add a main thread.

OK.

-- 
Daniel Jacobowitz
CodeSourcery


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