From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7160 invoked by alias); 26 Jun 2008 02:48:37 -0000 Received: (qmail 7152 invoked by uid 22791); 26 Jun 2008 02:48:36 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 26 Jun 2008 02:48:16 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 679A098366; Thu, 26 Jun 2008 02:48:15 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 48E079810F; Thu, 26 Jun 2008 02:48:15 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KBhWw-0005ib-Ic; Wed, 25 Jun 2008 22:48:14 -0400 Date: Thu, 26 Jun 2008 04:11:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: Make the remote target always register a thread Message-ID: <20080626024814.GB20206@caradoc.them.org> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org References: <200806260008.08596.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806260008.08596.pedro@codesourcery.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00464.txt.bz2 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 > > * 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