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: Michael Snyder <msnyder at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 02 May 2002 13:54:34 -0700
- Subject: Re: [PATCH RFA/RFC] Don't use lwp_from_thread() in thread_db_wait()
- Organization: Red Hat, Inc.
- References: <1020311234554.ZM20650@localhost.localdomain> <20020402161946.A954@nevyn.them.org>
Daniel Jacobowitz wrote:
>
> 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?
No, I've been a schmuck -- I promised Kevin I would look at it, and I
haven't.