From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26204 invoked by alias); 12 Feb 2008 19:46:58 -0000 Received: (qmail 26196 invoked by uid 22791); 12 Feb 2008 19:46:57 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Feb 2008 19:46:41 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id BE8502AA37F for ; Tue, 12 Feb 2008 14:46:39 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05lEkyfKno9I for ; Tue, 12 Feb 2008 14:46:39 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 83BF52AA2C5 for ; Tue, 12 Feb 2008 14:46:39 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 5948AE7ACB; Tue, 12 Feb 2008 11:46:37 -0800 (PST) Date: Tue, 12 Feb 2008 19:46:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: RFC: Allow a wrapper when starting programs Message-ID: <20080212194637.GA4439@adacore.com> References: <20080208185727.GA30185@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080208185727.GA30185@caradoc.them.org> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00204.txt.bz2 > 2008-02-08 Daniel Jacobowitz > > * 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