How to use variable in gdb?
Andreas Schwab
schwab@suse.de
Sun Feb 4 15:55:00 GMT 2007
"薛云龙" <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."
More information about the Gdb
mailing list