From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Cc: Michael Snyder <msnyder@redhat.com>, kettenis@gnu.org
Subject: Re: RFA[threads]: Fork event updates, part the thirteenth
Date: Thu, 09 Jan 2003 19:16:00 -0000 [thread overview]
Message-ID: <20030109191613.GB32189@nevyn.them.org> (raw)
In-Reply-To: <20030107005055.GA2981@nevyn.them.org>
On Mon, Jan 06, 2003 at 07:50:55PM -0500, Daniel Jacobowitz wrote:
> On Mon, Jan 06, 2003 at 03:53:52PM -0800, Michael Snyder wrote:
> > Daniel Jacobowitz wrote:
> > >
> > > Now is where it starts to get interesting. Michael, I mentioned this patch
> > > to you at lunch last week. If you take a short-lived program, run it, and
> > > detach it, and run it again, you'll see the exit of the _previous_ copy.
> > > Then GDB gets hopelessly confused. I have a testcase for this which I'll
> > > post in a moment.
> > >
> > > The reason it's included here is that that's essentially what happens if you
> > > are using "set follow-fork-mode child". We detach from the parent, which
> > > exits, confusing GDB.
> > >
> > > Is this OK?
> >
> > Hi Dan,
> >
> > Please excuse the delay. This seems OK. In child_wait,
> > would it be possible to add a check to see if the exiting
> > process is in our lwp list?
>
> I _think_ that child_wait will never be called if there is anything in
> the LWP list; if we have LWPs, we'll have pushed thread_db onto the
> stack, and we'll go to lin_lwp_wait instead if thre are any LWPs. But
> I'm sleepy, so I may be missing something; I'll sit on this and look at
> it again tomorrow :)
>
> Thanks.
Having convinced myself of this, I've checked in the patch as-is.
Thanks. Now for the testcase it fixes.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2003-01-09 19:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-15 13:43 Daniel Jacobowitz
2003-01-06 23:54 ` Michael Snyder
2003-01-07 0:50 ` Daniel Jacobowitz
2003-01-09 19:16 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030109191613.GB32189@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@gnu.org \
--cc=msnyder@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox