From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Deephanphongs To: gdb-patches@sources.redhat.com Subject: Re: [PATCH] specify arguments to debugee from commandline Date: Fri, 30 Mar 2001 00:26:00 -0000 Message-id: <20010330033426.A22133@llamedos.org> References: <20010330005457.A21793@llamedos.org> <200103300713.CAA15333@indy.delorie.com> X-SW-Source: 2001-03/msg00545.html Thus spake Eli Zaretskii (eliz@delorie.com): > > Date: Fri, 30 Mar 2001 00:54:57 -0500 > > From: David Deephanphongs > > > > This patch will add the option --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 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 -run [...] 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)