This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: Inferior command line arguments
>>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:
>> It might be possible to have `--args' stop all other argument
>> processing. I haven't investigated that.
Daniel> Rather than continue down this path, I'd much rather see us
Daniel> fix or fork GNU getopt so that we can detect the presence of
Daniel> '--'; I'd think in fact we could do it without having to go
Daniel> through all these hoops, but I haven't actually looked at the
Daniel> code.
Using `--' as an indicator that gdb should use the remaining arguments
as inferior command-line option is an incompatible change. Right now
you can invoke:
gdb -- file core
This is equivalent to:
gdb file core
I personally don't care about this, but I've tried to avoid
incompatible changes on the theory that it will make it harder for me
to get a patch in.
Tom