This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: access variables in canned command sequences
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