1# connect gdb to Valgrind gdbserver: 2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcmain_pic 3echo vgdb launched process attached\n 4source mcmain_pic.heur 5monitor v.set vgdb-error 999999 6# 7# break 8break main_pic.c:12 9# 10continue 11# first break encountered. 12print another_func("called from gdb") 13# 14print &main 15print &another_func 16continue 17quit 18