This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fix foll-fork.exp foll-vfork.exp fork-child-threads.exp
- From: Pedro Alves <pedro at codesourcery dot com>
- To: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 20 Nov 2008 16:52:34 +0000
- Subject: Re: Fix foll-fork.exp foll-vfork.exp fork-child-threads.exp
- References: <200811201636.mAKGawpG029010@d12av02.megacenter.de.ibm.com>
On Thursday 20 November 2008 16:36:58, Ulrich Weigand wrote:
> Looks good to me, thanks.
Thanks. I'll check it in.
> As a separate question, I'm wondering why this is the right place to
> put the follow-fork logic anyway (and not in handle_inferior_event
> like follow-exec ...). Do you know the history of this?
To be able to decide if you want to follow a child or a parent
when you catch a fork with "catch fork".
There's nothing to decide to follow or not on a "catch exec", the
image has already been replaced when you get the event, so gdb must
load the new symbols before dropping to the user/cli.
--
Pedro Alves