From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3000 invoked by alias); 2 Apr 2002 21:19:46 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2977 invoked from network); 2 Apr 2002 21:19:44 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 2 Apr 2002 21:19:44 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16sVgw-0000GV-00 for ; Tue, 02 Apr 2002 16:19:46 -0500 Date: Tue, 02 Apr 2002 13:19:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [PATCH RFA/RFC] Don't use lwp_from_thread() in thread_db_wait() Message-ID: <20020402161946.A954@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <1020311234554.ZM20650@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1020311234554.ZM20650@localhost.localdomain> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-04/txt/msg00041.txt.bz2 On Mon, Mar 11, 2002 at 04:45:54PM -0700, Kevin Buettner wrote: > I'm seeing the following failure when I run the gdb testsuite on an > SMP machine (GNU/Linux/x86): > > FAIL: gdb.threads/pthreads.exp: continue to bkpt at common_routine in thread 2 [snip great analysis] > Comments? Okay to commit? > > * thread-db.c (thread_db_wait): Don't attempt to use > lwp_from_thread(). Doing so assumes that the main thread > is already stopped and this might not be the case. Instead, > simply wait for any thread. Has anyone had a chance to look at this patch? -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer