This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: Inferior command line arguments
- To: david at llamedos dot org
- Subject: Re: RFC: Inferior command line arguments
- From: Tom Tromey <tromey at redhat dot com>
- Date: 01 Oct 2001 09:21:07 -0600
- Cc: gdb-patches at sources dot redhat dot com
- References: <87zo7gq7gb.fsf@creche.redhat.com> <3BB4C04D.22C3DAB5@cygnus.com> <877kuji2b7.fsf@creche.redhat.com> <20010928145938.A13638@nevyn.them.org> <3BB4CF12.3020900@cygnus.com> <20010928154217.A17406@nevyn.them.org> <87vgi3f1f1.fsf@creche.redhat.com> <20010929042717.B8313@llamedos.org>
- Reply-To: tromey at redhat dot com
>>>>> "David" == David Deephanphongs <deephan@telocity.com> writes:
David> How are you handling the fact that you don't know what the target
David> is until far later in the code?
gdb stores the vector of arguments from the command line and then
lazily computes the string to pass to the create_inferior method.
You can still cause strange results, I think, if you use `show args'
before you've set the target. This is something I still have to test
before I can submit the patch.
Tom