1 # connect gdb to Valgrind gdbserver:
2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlsigvgdb
3 echo vgdb launched process attached\n
4 monitor v.set vgdb-error 999999
7 # simulate control-c in a few seconds
8 # The control-c will cause a character to be sent to gdbserver, causing
9 # an invocation while the gdbserver is already busy.
10 shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-nlsigvgdb 1 grep continuing nlsigvgdb.stderrB.out
14 # kill the process now