This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb --args mishandles empty arguments


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  <schwab@suse.de>
> >>
> >>	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]