How to use variable in gdb?

Jack jack9981@gmail.com
Sun Feb 4 14:28:00 GMT 2007


It would be execiting!

On 2/4/07, Daniel Jacobowitz <drow@false.org> wrote:
> 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