public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* program command line argument
@ 2000-11-21  4:54 Frederic Heem
  2000-11-21  7:45 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Frederic Heem @ 2000-11-21  4:54 UTC (permalink / raw)
  To: insight

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.

frederic heem

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: program command line argument
  2000-11-21  4:54 program command line argument Frederic Heem
@ 2000-11-21  7:45 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2000-11-21  7:45 UTC (permalink / raw)
  To: Frederic Heem; +Cc: insight

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-21  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-21  4:54 program command line argument Frederic Heem
2000-11-21  7:45 ` Keith Seitz

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).