From: Andreas Schwab <schwab@suse.de>
To: 薛云龙 <xueyunlong@gmail.com>
Cc: gdb <gdb@sourceware.org>
Subject: Re: How to use variable in gdb?
Date: Sun, 04 Feb 2007 15:55:00 -0000 [thread overview]
Message-ID: <jeirehnci9.fsf@sykes.suse.de> (raw)
In-Reply-To: <9875e6b70702040206xaea7b10o1c85db30fb4b737b@mail.gmail.com> (=?utf-8?B?6Jab5LqRCem+mSdz?= message of "Sun, 4 Feb 2007 18:06:01 +0800")
"薛云龙" <xueyunlong@gmail.com> writes:
> Hello, I have problem with gdb program, can I define a variable like
> shell script?
> For example:
>
> xxx=/home/src/
> yyy=/home/exe/
>
> file f
> set args $xxx $yyy (So I can use variable here!)
You can use environment variables which can be set from within gdb.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2007-02-04 15:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-04 10:06 薛云龙
2007-02-04 14:05 ` Daniel Jacobowitz
2007-02-04 14:28 ` Jack
2007-02-04 15:55 ` Andreas Schwab [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=jeirehnci9.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=gdb@sourceware.org \
--cc=xueyunlong@gmail.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