1# connect gdb to Valgrind gdbserver: 2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlsigvgdb 3echo vgdb launched process attached\n 4monitor v.set vgdb-error 999999 5# 6# 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. 10shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-nlsigvgdb 1 grep continuing nlsigvgdb.stderrB.out 11# 12monitor v.wait 5000 13# 14# kill the process now 15monitor v.kill 16quit 17 18