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]

Re: [PATCH] specify arguments to debugee from commandline


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


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