Re: Fix foll-fork.exp foll-vfork.exp fork-child-threads.exp

Pedro Alves
2008-11-20T16:53:33Z

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