1 # connect gdb to Valgrind gdbserver:
2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlgone-exit
3 echo vgdb launched process attached\n
4 # continue after startup
5 echo filter_gdb BEGIN drop\n
7 echo filter_gdb END drop\n
8 # continue at the last instruction
10 # see program is gone with exit code