This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA/RFC] Don't use lwp_from_thread() in thread_db_wait()
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 2 Apr 2002 16:19:46 -0500
- Subject: Re: [PATCH RFA/RFC] Don't use lwp_from_thread() in thread_db_wait()
- References: <1020311234554.ZM20650@localhost.localdomain>
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