This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to use variable in 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."