1 # connect gdb to Valgrind gdbserver:
2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcbreak
3 echo vgdb launched process attached\n
4 monitor vg.set vgdb-error 999999
10 echo Bizarre the oldpc has not changed after step\n
14 echo old_pc has changed after step\n
23 # first break encountered.
28 monitor vg.set vgdb-error 0
37 print whoami("second")
45 print whoami("fourth")
48 # modify sleeps so as to have a shorter test:
51 print whoami("after next: inferior call pushed from mcbreak.stdinB.gdb")
54 # encountered second break
60 monitor vg.info n_errs_found
61 # inferior call "in the middle" of an instruction is not working at least
62 # on all platforms, so comment the below.
63 # print whoami("after error: inferior call pushed from mcbreak.stdinB.gdb")
65 monitor vg.set vgdb-error 0
67 # stop the process a.o. to avoid non deterministic output