This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch, rfc] Re: target_find_description question
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: "Ulrich Weigand" <uweigand at de dot ibm dot com>, drow at false dot org
- Date: Fri, 5 Sep 2008 14:11:11 +0100
- Subject: Re: [patch, rfc] Re: target_find_description question
- References: <200809042359.m84NxTYO018519@d12av02.megacenter.de.ibm.com>
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