[PATCH] specify arguments to debugee from commandline

Alexandre Oliva aoliva@redhat.com
Fri Mar 30 03:00:00 GMT 2001


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:

gdb_foo () {
  gdb [options] -run foo ${1+"$@"}
}

and get the same argument list, if they contain blanks or equivalent.
I'd much rather see something that accepts an argument list, instead
of a single string containing multiple arguments that has to be
re-parsed by gdb.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gdb-patches mailing list