Home | History | Annotate | Download | only in gdbserver_tests
      1 # connect gdb to Valgrind gdbserver:
      2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcwatchpoints
      3 echo vgdb launched process attached\n
      4 monitor v.set vgdb-error 999999
      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 rwatch undefined[9]
     18 awatch undefined[9]
     19 watch  undefined[9]
     20 #
     21 # now we should encounter 4 break points
     22 continue
     23 continue
     24 continue
     25 continue
     26 del
     27 break watchpoints.c:70
     28 # continue till //break2:
     29 continue
     30 # trigger gdb reading data with big packets:
     31 p *(k50)@50000
     32 continue
     33 quit
     34