From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15142 invoked by alias); 3 Dec 2002 04:00:46 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15135 invoked from network); 3 Dec 2002 04:00:44 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 3 Dec 2002 04:00:44 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18J67D-0004S0-00; Tue, 03 Dec 2002 00:01:04 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18J4F7-0005E0-00; Mon, 02 Dec 2002 23:01:05 -0500 Date: Mon, 02 Dec 2002 20:00:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: Andreas Schwab , gdb-patches@sources.redhat.com Subject: Re: gdb --args mishandles empty arguments Message-ID: <20021203040105.GA19984@nevyn.them.org> Mail-Followup-To: Andrew Cagney , Andreas Schwab , gdb-patches@sources.redhat.com References: <20021203022336.GA8725@nevyn.them.org> <3DEC1AE5.5080302@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DEC1AE5.5080302@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00048.txt.bz2 On Mon, Dec 02, 2002 at 09:45:57PM -0500, Andrew Cagney wrote: > >On Mon, Dec 02, 2002 at 03:42:18PM +0100, Andreas Schwab wrote: > > > >>With the intruduction of --args it is possible to construct empty > >>arguments that need to be transformed to ''. > >> > >>Andreas. > >> > >>2002-12-02 Andreas Schwab > >> > >> * infcmd.c (construct_inferior_arguments): Handle empty arguments. > > > > > >This patch is OK. > > > btw, is there a test case? actually, is this tested at all? No, I don't think --args is... a test case if someone feels like putting one together: gdb --args /bin/echo '' a (gdb) run should produce '^ a$' -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer