From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7458 invoked by alias); 29 Jun 2009 18:45:27 -0000 Received: (qmail 7450 invoked by uid 22791); 29 Jun 2009 18:45:27 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Jun 2009 18:45:22 +0000 Received: (qmail 31738 invoked from network); 29 Jun 2009 18:45:21 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 29 Jun 2009 18:45:21 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: About handle_inferior_event new_thread_event Date: Mon, 29 Jun 2009 18:45:00 -0000 User-Agent: KMail/1.9.10 Cc: Daniel Jacobowitz References: <200906291229.12382.pedro@codesourcery.com> <20090629175628.GA2823@caradoc.them.org> In-Reply-To: <20090629175628.GA2823@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200906291946.26217.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00314.txt.bz2 On Monday 29 June 2009 18:56:28, Daniel Jacobowitz wrote: > I don't know - but I do know that this code has never worked reliably > for Linux; we used to get crashes or internal errors from unset > LWP-private state any time we went through here. =A0I'd rather all > targets were required to do thread accounting on their own. Yeah, although I don't think those should be happening currently. linux-nat.c just ignores events from lwps not in the lwp_list... In non-st= op mode, it's already an internal error to reach this bit. I do notice that nto-procfs.c is one target that defers adding threads to the list to handle_inferior_event ... but I honestly doubt the new thread needs a first-chance resume. --=20 Pedro Alves