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]

How to use variable in 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!)


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