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-mcwatchpoints |
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 | # |
| 7 | # insert break: |
| 8 | break breakme |
| 9 | # |
| 10 | # continue till //break1: |
| 11 | continue |
| 12 | # |
| 13 | # insert the watchpoints |
| 14 | rwatch undefined[0] |
| 15 | awatch undefined[4] |
| 16 | watch undefined[8] |
| 17 | # |
| 18 | # now we should encounter 4 break points |
| 19 | continue |
| 20 | continue |
| 21 | continue |
| 22 | continue |
| 23 | del |
| 24 | continue |
| 25 | quit |