blob: 2f914e52436942d27ddddd946c0dae392b5a42e6 [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++:
philippe13bf8ef2012-05-29 17:04:13 +00006break passsigalrm.c:53
philippea3d8c672012-03-30 20:25:26 +00007# break on the next line:
philippe13bf8ef2012-05-29 17:04:13 +00008break passsigalrm.c:55
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