[PATCH] specify arguments to debugee from commandline

Pierre Muller muller@cerbere.u-strasbg.fr
Fri Mar 30 03:47:00 GMT 2001


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



More information about the Gdb-patches mailing list