blob: 0a52d30dc55056af68462811174e92648bbaad1c [file] [log] [blame]
sewardjb2572b52011-06-26 09:36:38 +00001# connect gdb to Valgrind gdbserver:
2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlpasssigalrm
3echo vgdb launched process attached\n
sewardj30b3eca2011-06-28 08:20:39 +00004monitor v.set vgdb-error 999999
philippea3d8c672012-03-30 20:25:26 +00005# break on breakme++:
6break passsigalrm.c:48
7# break on the next line:
8break passsigalrm.c:50
sewardjb2572b52011-06-26 09:36:38 +00009#
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
philippea3d8c672012-03-30 20:25:26 +000021# Here, we expect to have stop on the breakme++
philippe886fde32012-03-29 21:56:47 +000022p breakme
23continue
24p breakme
philippea3d8c672012-03-30 20:25:26 +000025# now continue till the signal SIGRTMIN is encountered
26continue
27# and continue to deliver it
philippe886fde32012-03-29 21:56:47 +000028continue
sewardjb2572b52011-06-26 09:36:38 +000029quit