1 # connect gdb to Valgrind gdbserver: 2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mssnapshot 3 echo vgdb launched process attached\n 4 monitor v.set vgdb-error 999999 5 # 6 # 7 # insert break: 8 break main 9 # 10 # continue till main 11 continue 12 # 13 # test the massif help 14 monitor help 15 # 16 # test non detailed and detailed snapshot 17 monitor snapshot 18 monitor detailed_snapshot 19 # 20 # 21 monitor v.kill 22 quit 23