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 5 # break on breakme++: 6 break passsigalrm.c:53 7 # break on the next line: 8 break passsigalrm.c:55 9 # 10 # 11 # ensure SIGALRM can be passed directly to the process, without 12 # going through gdb: 13 handle SIGALRM stop print pass 14 # 15 continue 16 # 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 20 continue 21 # Here, we expect to have stop on the breakme++ 22 p breakme 23 continue 24 p breakme 25 # now continue till the signal SIGRTMIN is encountered 26 continue 27 # and continue to deliver it 28 continue 29 quit 30