[PATCH] specify arguments to debugee from commandline
David Deephanphongs
deephan@erols.com
Fri Mar 30 00:26:00 GMT 2001
Thus spake Eli Zaretskii (eliz@delorie.com):
> > Date: Fri, 30 Mar 2001 00:54:57 -0500
> > From: David Deephanphongs <deephan@erols.com>
> >
> > This patch will add the option --args=<args> to gdb.
>
> Thanks.
>
> This has come up before. I don't remember the details (you can find
> them by searching the mail archives), but there were some issues which
> prevented its inclusion, I think.
>
I just did a search through the gdb-patches list and the gdb list, and
I only found one thread:
It concerned an patch that did what my patch does, but it used a funky
method to do it - using the option --cmdline <args> would cause gdb to
create a .gdb-cmdline file, and then read it as per --command.
Results:
1) People didn't like the implementation...
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.
> Anyway, if this is approved, please consider a short addition to
> gdb.texinfo which documents it (gdb.1 is not the main docs).
Sure, didn't know what file to modify to update the .info files...
How /does/ a patch get approved, anyway?
Dave
--
"You're not one of us."
"I don't think I'm one of them, either," said Brutha. "I'm one of
mine."
-- (Terry Pratchett, Small Gods)
More information about the Gdb-patches
mailing list