From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: deephan@erols.com Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] specify arguments to debugee from commandline Date: Fri, 30 Mar 2001 03:00:00 -0000 Message-id: References: <20010330005457.A21793@llamedos.org> <200103300713.CAA15333@indy.delorie.com> <20010330033426.A22133@llamedos.org> X-SW-Source: 2001-03/msg00548.html On Mar 30, 2001, David Deephanphongs wrote: > 2) There was a suggestion to change the syntax: > you would be able to run gdb like so: > gdb -run [...] > 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