1 # connect gdb to Valgrind gdbserver:
2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-hginfo
3 echo vgdb launched process attached\n
4 monitor v.set vgdb-error 999999
10 # continue till each break and execute via gdb the monitor commands
11 # ptr must be allocated at this state:
14 eval "monitor v.info location %p", ptr
15 # ptr must be freed at this state
18 eval "monitor v.info location %p", ptr