From: Keith Seitz <keiths@redhat.com>
To: Gene Smith <gds@chartertn.net>
Cc: insight@sources.redhat.com
Subject: Re: Set argc and argv in insight
Date: Wed, 29 Apr 2009 22:08:00 -0000 [thread overview]
Message-ID: <49F8CFCC.80208@redhat.com> (raw)
In-Reply-To: <gtaih6$4vs$1@ger.gmane.org>
Gene Smith wrote:
> Clarification: This is Insight's console, not an OS console.
Correct. The "Console Window" as it is called in the Window menu.
> I think you can also enter "run arg1 arg2 .." to set the arguments
> (arguments are space separated). Enter just "set args" with no arguments
> to clear the argument list for subsequent runs. Put "set args ..." in
> gdbinit to have the args always set and used.
All those options are valid ways to do it. I checked in patches to
better sync arguments between gdb and Insight, but if you specify "set
args" in your .gdbinit, it will probably be overridden by whatever may
be stored in Insight's session preferences. I did not test that case,
just the case of "set args" and the target preferences dialog.
>> 2) File->Target Settings... there is a place to enter arguments
> Would that be the place that says "Command to issue after attaching:"?
> That doesn't sound like arguments.
Nope. If you are using an "Exec" target, i.e., debugging natively
(target==host), then the one entry box is relabeled "Arguments". The
"after attaching" thing is for something else entirely; it allows you to
run any command after attaching to the target but before loading/running
it. This was used by various embedded platforms to do necessary board
initialization, particularly w.r.t. memory configuration on a certain
JTAG emulator that I worked on long ago. It is not really intended for
natives, but I guess it would work.
If you are using a cross debugger (host != target), then you must use
the "set args" method. The target preferences dialog will not allow you
to enter arguments (because this is typically impossible to do with
embedded systems).
Keith
prev parent reply other threads:[~2009-04-29 22:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 12:45 arkkimede
2009-04-23 16:16 ` Keith Seitz
[not found] ` <b4503c170904231028n81901b4sdb175596c9e852de@mail.gmail.com>
2009-04-23 18:45 ` Keith Seitz
2009-04-29 21:58 ` Gene Smith
2009-04-29 22:08 ` 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=49F8CFCC.80208@redhat.com \
--to=keiths@redhat.com \
--cc=gds@chartertn.net \
--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).