This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Allow a wrapper when starting programs
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 12 Feb 2008 11:46:37 -0800
- Subject: Re: RFC: Allow a wrapper when starting programs
- References: <20080208185727.GA30185@caradoc.them.org>
> 2008-02-08 Daniel Jacobowitz <dan@codesourcery.com>
>
> * Makefile.in (fork-child.o): Update.
> * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
> argument. Gather all gdbserver features together.
> * fork-child.c (exec_wrapper): New variable.
> (fork_inferior): Use it.
> (startup_inferior): Skip an extra trap if using "set exec-wrapper".
> (unset_exec_wrapper_command, _initialize_fork_child): New.
>
> * gdb.texinfo (Starting): Document "set exec-wrapper".
> (Server): Document gdbserver --wrapper.
>
> * server.c (wrapper_argv): New.
> (start_inferior): Handle wrapper_argv. If set, expect an extra
> trap.
> (gdbserver_usage): Document --wrapper.
> (main): Parse --wrapper.
FWIW, I took a look a the GDB code side of it, and it looks good
(my knowledge of gdbserver is very very partial, though).
I think this is a very nice feature!
--
Joel