sewardj | b2572b5 | 2011-06-26 09:36:38 +0000 | [diff] [blame] | 1 | # connect gdb to Valgrind gdbserver: |
| 2 | target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlpasssigalrm |
| 3 | echo vgdb launched process attached\n |
sewardj | 30b3eca | 2011-06-28 08:20:39 +0000 | [diff] [blame] | 4 | monitor v.set vgdb-error 999999 |
philippe | 886fde3 | 2012-03-29 21:56:47 +0000 | [diff] [blame^] | 5 | break passsigalrm.c:43 |
| 6 | break passsigalrm.c:44 |
sewardj | b2572b5 | 2011-06-26 09:36:38 +0000 | [diff] [blame] | 7 | # |
| 8 | # |
| 9 | # ensure SIGALRM can be passed directly to the process, without |
| 10 | # going through gdb: |
| 11 | handle SIGALRM stop print pass |
| 12 | # |
| 13 | continue |
| 14 | # |
| 15 | # Here, gdb should have been informed of the 1st SIGALRM |
| 16 | # Tell the 2nd can be given directly |
| 17 | handle SIGALRM nostop noprint pass |
| 18 | continue |
philippe | 886fde3 | 2012-03-29 21:56:47 +0000 | [diff] [blame^] | 19 | # Here, we expect to stop on the breakme |
| 20 | p breakme |
| 21 | continue |
| 22 | p breakme |
| 23 | continue |
sewardj | b2572b5 | 2011-06-26 09:36:38 +0000 | [diff] [blame] | 24 | quit |