1# connect gdb to Valgrind gdbserver: 2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcwatchpoints 3echo vgdb launched process attached\n 4monitor v.set vgdb-error 999999 5# 6# 7# insert break: 8break breakme 9# 10# continue till //break1: 11continue 12# 13# insert the watchpoints 14rwatch undefined[0] 15awatch undefined[4] 16watch undefined[8] 17rwatch undefined[9] 18awatch undefined[9] 19watch undefined[9] 20# 21# now we should encounter 4 break points 22continue 23continue 24continue 25continue 26del 27break watchpoints.c:70 28# continue till //break2: 29continue 30# trigger gdb reading data with big packets: 31p *(k50)@50000 32continue 33quit 34