From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12868 invoked by alias); 7 Oct 2008 16:36:27 -0000 Received: (qmail 12858 invoked by uid 22791); 7 Oct 2008 16:36:27 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Oct 2008 16:35:51 +0000 Received: (qmail 20738 invoked from network); 7 Oct 2008 16:35:46 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 7 Oct 2008 16:35:46 -0000 From: Pedro Alves To: Joel Brobecker Subject: Re: [RFA/commit] Add support for DEC threads on alpha-osf Date: Tue, 07 Oct 2008 16:36:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb-patches@sourceware.org References: <20081007130322.GD28143@adacore.com> <200810071619.36274.pedro@codesourcery.com> <20081007152335.GK28138@adacore.com> In-Reply-To: <20081007152335.GK28138@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810071736.24736.pedro@codesourcery.com> 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-10/txt/msg00215.txt.bz2 On Tuesday 07 October 2008 16:23:35, Joel Brobecker wrote: > > ... maybe proc_get_current_thread returns 0, and then later on in > > procfs_wait we're adding the main thread again, but then with an > > lwp id already. But what sounded very strange is that the LWP is > > number 3, not 1. > > I need to look further into this, but would it help explain things > if I said that the LWPs are added when I do "info threads", not when > the process stops? Possibly maybe. Dunno, perhaps LWP ids 1 and 2 are gone when we go through the shell doing fork/execs while doing the fork-child dance. -- Pedro Alves