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 v.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 v.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. Ensure we stop on line 120 : if (argc > 1)
60 monitor v.info n_errs_found
61 monitor v.info n_errs_found a
62 monitor v.info n_errs_found b
63 monitor v.info n_errs_found c d
64 monitor v.info n_errs_found eeeeeee fffffff ggggggg
65 # inferior call "in the middle" of an instruction is not working at least
66 # on all platforms, so comment the below.
67 # print whoami("after error: inferior call pushed from mcbreak.stdinB.gdb")
69 monitor v.set vgdb-error 0
71 # stop the process a.o. to avoid non deterministic output