Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* access variables in canned command sequences
@ 2007-04-06 18:26 vb
  2007-04-06 18:52 ` Michael Snyder
  2007-04-09 10:19 ` Nick Roberts
  0 siblings, 2 replies; 7+ messages in thread
From: vb @ 2007-04-06 18:26 UTC (permalink / raw)
  To: gdb

Hello all,

I need to be able pass a convenience variable defined in gdb command
file to a shell script from inside a canned sequence, something like
this:

set $offs=0x1ff80000
define xyz
        shell echo offset is  $offs
end

what happens when I run it - the parameter does not get passed to the
shell at all:

(gdb) xyz
offset is
(gdb)


What gives?!

Any help would be highly appreciated,
cheers,
Vadim


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-10 19:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-06 18:26 access variables in canned command sequences vb
2007-04-06 18:52 ` Michael Snyder
2007-04-08 14:06   ` Daniel Jacobowitz
2007-04-09 10:19 ` Nick Roberts
2007-04-09 19:39   ` vb
2007-04-09 22:09     ` Nick Roberts
2007-04-10 19:05       ` vb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox