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 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. 10 shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-nlsigvgdb 1 grep continuing nlsigvgdb.stderrB.out 11 # 12 monitor v.wait 5000 13 # 14 # kill the process now 15 monitor v.kill 16 quit 17 18