[patch, rfc] Re: target_find_description question
Pedro Alves
pedro@codesourcery.com
Fri Sep 5 13:11:00 GMT 2008
On Friday 05 September 2008 00:59:29, Ulrich Weigand wrote:
> In addition, this has some further benefits:
> - We can now properly handle cases where the inferior dies while in the
> shell (the FIXME in the old startup_inferior code)
> - The treat_exec_as_sigtrap argument to handle_inferior_event is no longer
> used and could be removed (not part of this patch)
Of course, a specific stop_soon flag for startup/going through the shell
would also make it possible to do this in handle_inferior_event, but indeed,
it would be more complicated.
> Tested on amd64-linux with no regressions.
>
> What do you think?
I like it.
Notice that there are fork-child targets that handle this even
at a lower level, within target_wait (see gnu-nat.c).
--
Pedro Alves
More information about the Gdb-patches
mailing list