gdb --args mishandles empty arguments
Daniel Jacobowitz
drow@mvista.com
Mon Dec 2 20:00:00 GMT 2002
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
More information about the Gdb-patches
mailing list