This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: passing command line arguments


On Thu, 2004-07-01 at 06:08, Paul Rosin wrote:
> I can't work out how to pass command line arguments when using Insight
> (6.1)

What command line arguments? To gdb or to the inferior? I'll assume you
mean the inferior.

You have two choices:
1) Open a Console Window and type the gdb command ("set args BLAH BLAH
BLAH").
2) Open the Target Settings Dialog (File->Target Settings...), select
the appropriate target (usually "Exec" on natives) and options.

There is a small bug in the dialog: if you use the command line to enter
arguments, the dialog will not recognize it, and hitting the Run button
will overwrite your args. [Moral: Use the Target Settings Dialog.]

Regardless of the method you've used, Insight will remember the
arguments when you quit. [Again, there's a bug in the Target Settings
Dialog which won't display the arguments, but entering "show args" in
the console will show their there.]

Keith


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