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] 17# 18# now we should encounter 4 break points 19continue 20continue 21continue 22continue 23del 24continue 25quit 26