This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Make the remote target always register a thread
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 25 Jun 2008 22:48:14 -0400
- Subject: Re: Make the remote target always register a thread
- References: <200806260008.08596.pedro@codesourcery.com>
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