public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Jim Ingham <jingham@apple.com>
To: insight@sources.redhat.com
Subject: Re: debugging a program that takes command line args
Date: Mon, 13 Nov 2000 14:01:00 -0000	[thread overview]
Message-ID: <200011132201.OAA23290@scv2.apple.com> (raw)
In-Reply-To: <973984454.30568.ezmlm@sources.redhat.com>

Adam,

Go to the Target Settings panel (look under the File menu on the Source window).  Set the target to "exec".  Then you will get an "args" entry box in the target settings.  Type your arguments in the Run window, and you are good to go.

The non-gui way to do it, is to bring up the console window, and type

(gdb) set args whatever

Then run as normal.

Hope  this helps,

Jim

On Saturday, November 11, 2000, at 03:14 PM, insight-digest-help@sources.redhat.com wrote:

> From: Adam Schuetze <adam@adam-schuetze.org>
> Date: Sat Nov 11, 2000  03:15:00 PM US/Pacific
> To: Insight Mailing List <insight@sourceware.cygnus.com>
> Subject: debugging a program that takes command line args
> 
> Hi all,
> 
> I'd like to be able to use insight to debug programs that take
> command line arguements, but I cannot discover how to do this.
> 
> I have tried things like:
> 
> gdb test_program arg1 arg2 arg3
> 
> but the args are ignored.
> 
> How is this done?
> 
> thanks,
> 
> -- 
>             Adam Schuetze <adam@adam-schuetze.org> 
>         Get my pgp keys at http://www.adam-schuetze.org 
> 
>                    -  pgp fingerprints  - 
> rsa: B8 80 DA D6 BB CA 80 5F C5 68 1C 08 FE 3E 65 1C 
> dss: 46 CB B3 C3 A1 C9 BA 57 7C B4 A1 6A BF 8F 2D 95 2B 7A 1D 77

  parent reply	other threads:[~2000-11-13 14:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <973984454.30568.ezmlm@sources.redhat.com>
2000-11-13 12:01 ` Insight 5.0 and GDB 5.0 Jim Ingham
     [not found]   ` <20001114041709.A930@orion.exa.homeip.net>
2000-11-13 23:40     ` Eray Ozkural
2000-11-13 14:01 ` Jim Ingham [this message]
2000-11-11 15:14 debugging a program that takes command line args Adam Schuetze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200011132201.OAA23290@scv2.apple.com \
    --to=jingham@apple.com \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).