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