blob: a8f14c794bd01e2235fbefa78205701bd8b0fa5f [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
philippe886fde32012-03-29 21:56:47 +00005break passsigalrm.c:43
6break passsigalrm.c:44
sewardjb2572b52011-06-26 09:36:38 +00007#
8#
9# ensure SIGALRM can be passed directly to the process, without
10# going through gdb:
11handle SIGALRM stop print pass
12#
13continue
14#
15# Here, gdb should have been informed of the 1st SIGALRM
16# Tell the 2nd can be given directly
17handle SIGALRM nostop noprint pass
18continue
philippe886fde32012-03-29 21:56:47 +000019# Here, we expect to stop on the breakme
20p breakme
21continue
22p breakme
23continue
sewardjb2572b52011-06-26 09:36:38 +000024quit