1 # connect gdb to Valgrind gdbserver:
2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlpasssigalrm
3 echo vgdb launched process attached\n
4 monitor v.set vgdb-error 999999
7 # break on the next line:
11 # ensure SIGALRM can be passed directly to the process, without
13 handle SIGALRM stop print pass
17 # Here, gdb should have been informed of the 1st SIGALRM
18 # Tell the 2nd can be given directly
19 handle SIGALRM nostop noprint pass
21 # Here, we expect to have stop on the breakme++
25 # now continue till the signal SIGRTMIN is encountered
27 # and continue to deliver it