* How to use variable in gdb?
@ 2007-02-04 10:06 薛云龙
2007-02-04 14:05 ` Daniel Jacobowitz
2007-02-04 15:55 ` Andreas Schwab
0 siblings, 2 replies; 4+ messages in thread
From: 薛云龙 @ 2007-02-04 10:06 UTC (permalink / raw)
To: gdb
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!)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to use variable in gdb?
2007-02-04 10:06 How to use variable in gdb? 薛云龙
@ 2007-02-04 14:05 ` Daniel Jacobowitz
2007-02-04 14:28 ` Jack
2007-02-04 15:55 ` Andreas Schwab
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-02-04 14:05 UTC (permalink / raw)
To: ??????; +Cc: gdb
On Sun, Feb 04, 2007 at 06:06:01PM +0800, ?????? wrote:
> 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!)
"set args" doesn't allow any variables - sorry. We've been talking
about adding a full scripting language to GDB, which will make this
easier.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to use variable in gdb?
2007-02-04 14:05 ` Daniel Jacobowitz
@ 2007-02-04 14:28 ` Jack
0 siblings, 0 replies; 4+ messages in thread
From: Jack @ 2007-02-04 14:28 UTC (permalink / raw)
To: gdb
It would be execiting!
On 2/4/07, Daniel Jacobowitz <drow@false.org> wrote:
> On Sun, Feb 04, 2007 at 06:06:01PM +0800, ?????? wrote:
> > 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!)
>
> "set args" doesn't allow any variables - sorry. We've been talking
> about adding a full scripting language to GDB, which will make this
> easier.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to use variable in gdb?
2007-02-04 10:06 How to use variable in gdb? 薛云龙
2007-02-04 14:05 ` Daniel Jacobowitz
@ 2007-02-04 15:55 ` Andreas Schwab
1 sibling, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2007-02-04 15:55 UTC (permalink / raw)
To: 薛云龙; +Cc: gdb
"薛云龙" <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."
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-02-04 15:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-04 10:06 How to use variable in gdb? 薛云龙
2007-02-04 14:05 ` Daniel Jacobowitz
2007-02-04 14:28 ` Jack
2007-02-04 15:55 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox