This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: Inferior command line arguments


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]