This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: passing command line arguments
- From: Keith Seitz <keiths at redhat dot com>
- To: Paul Rosin <Paul dot rosin at cs dot cardiff dot ac dot uk>
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Thu, 01 Jul 2004 07:47:35 -0700
- Subject: Re: passing command line arguments
- References: <1088687324.10270.66.camel@celeste>
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