1# connect gdb to Valgrind gdbserver:
2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlpasssigalrm
3echo vgdb launched process attached\n
4monitor v.set vgdb-error 999999
5# break on breakme++:
6break passsigalrm.c:53
7# break on the next line:
8break passsigalrm.c:55
9#
10#
11# ensure SIGALRM can be passed directly to the process, without
12# going through gdb:
13handle SIGALRM stop print pass
14#
15continue
16#
17# Here, gdb should have been informed of the 1st SIGALRM
18# Tell the 2nd can be given directly
19handle SIGALRM nostop noprint pass
20continue
21# Here, we expect to have stop on the breakme++
22p breakme
23continue
24p breakme
25# now continue till the signal SIGRTMIN is encountered
26continue
27# and continue to deliver it
28continue
29quit
30