This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to use variable in 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]