How to use variable in gdb?

Daniel Jacobowitz drow@false.org
Sun Feb 4 14:05:00 GMT 2007


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



More information about the Gdb mailing list