access variables in canned command sequences

Nick Roberts nickrob@snap.net.nz
Mon Apr 9 10:19:00 GMT 2007


 > 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

define xyz
  printf "offset is %d\n", $offs
end

-- 
Nick                                           http://www.inet.net.nz/~nickrob



More information about the Gdb mailing list