passing command line arguments

Keith Seitz keiths@redhat.com
Thu Jul 1 14:45:00 GMT 2004


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



More information about the Insight mailing list