This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] specify arguments to debugee from commandline
At 12:37 30/03/01 , vous avez écrit:
>On Mar 30, 2001, David Deephanphongs <deephan@erols.com> wrote:
>
> > 2) There was a suggestion to change the syntax:
> > you would be able to run gdb like so:
> > gdb <various options> -run <progname> [<arg1>...<argn>]
>
> > My implementation is cleaner (it modiifies inferior_arguments directly)
> > and keeps the GDB syntax exactly the same as it is now.
>
>But it requires pre-parsing and quoting of the argument list, so you
>can't just do something like:
Why doesn't GDB simply use '--' like X ?
Everything that appears after '--' are considered as args for set args !
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99