sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 1 | # connect gdb to Valgrind gdbserver: |
| 2 | target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcsigpass |
sewardj | eefeeb7 | 2011-05-10 11:01:07 +0000 | [diff] [blame] | 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 |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 5 | # |
| 6 | # After this continue, we will receive 5 signals. |
| 7 | continue |
| 8 | # |
| 9 | # SIGTRAP : caused by invalid write error detected by memcheck |
| 10 | continue |
| 11 | # |
| 12 | # SIGSEGV : line 99 |
| 13 | continue |
| 14 | # |
| 15 | # SIGSEGV : line 104 |
| 16 | continue |
| 17 | # |
| 18 | # SIGBUS : line 109 |
| 19 | continue |
| 20 | # |
| 21 | # SIGFPE : line 114 |
| 22 | continue |
sewardj | 7629180 | 2011-05-31 07:09:06 +0000 | [diff] [blame] | 23 | echo after continue SIGFPE |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 24 | # |
| 25 | # program will exit |
| 26 | quit |
| 27 | |