access variables in canned command sequences
vb
vb@vsbe.com
Mon Apr 9 19:39:00 GMT 2007
On 4/9/07, Nick Roberts <nickrob@snap.net.nz> wrote:
>
> define xyz
> printf "offset is %d\n", $offs
> end
>
Yeah, this works as we know, but is there any way of passing an
internal variable value to the shell?
Somebody mentioned setting up an environment variable - this seems
interesting, I tried
set environment offset 0x1000
shell env | grep offset
`offset' does not get set for the shell started from within gdb....
Would there be any other way?
cheers,
/vb
> --
> Nick http://www.inet.net.nz/~nickrob
>
More information about the Gdb
mailing list