public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <kseitz@firetalk.com>
To: Frederic Heem <frederic.heem@netergynet.com>
Cc: insight@sourceware.cygnus.com
Subject: Re: program command line argument
Date: Tue, 21 Nov 2000 07:45:00 -0000	[thread overview]
Message-ID: <3A1A986F.BCBF5A09@firetalk.com> (raw)
In-Reply-To: <3A1A7099.7AE2D89C@netergynet.com>

Frederic Heem wrote:
> 
> Hi,
> I would like to debug a program called dump with a particular argument ,
> i.e dump -5 elf.o, unfortunatly, in the degug dialog, even though i put
> the line "/home/fred/dump/src/dump -5 elf.o" in the text field
> "Program", argc is equal to 1, therefore the program dump is called
> without any arguments or options. Hopefully, if i open a console window
> within insight, then i type "run -5 elf.o", it works.  I wonder if
> someone else got the same problem.

[Is this in a FAQ yet?]

Short answers:
- Yes, if you type "run -5 elf.o" in the Console Window, it will work as
you expect.
- Alternatively, go to File->Target Settings... and select the "exec"
target. When you do, one of the options available will be for program
args. Just enter "-5 elf.o" there and you're set to go. Clicking on the
run button will pass these args to the inferior. Or at least it should!
:-)

Keith

      reply	other threads:[~2000-11-21  7:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-21  4:54 Frederic Heem
2000-11-21  7:45 ` Keith Seitz [this message]

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=3A1A986F.BCBF5A09@firetalk.com \
    --to=kseitz@firetalk.com \
    --cc=frederic.heem@netergynet.com \
    --cc=insight@sourceware.cygnus.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).