Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Make the remote target always register a thread
Date: Thu, 26 Jun 2008 04:11:00 -0000	[thread overview]
Message-ID: <20080626024814.GB20206@caradoc.them.org> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2008-06-26  2:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-26  2:22 Pedro Alves
2008-06-26  2:48 ` Pedro Alves
2008-06-26  4:11 ` Daniel Jacobowitz [this message]
2008-06-27 12:30   ` Pedro Alves
2008-06-27 14:58     ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080626024814.GB20206@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox