Ensure gdbserver_tests/mcbreak.vgtest works with gcc 4.9

At least on x86+gcc4.9, the test fails because step+finish
makes the program stop on the breakme call line (after the call)
instead of reaching line 120.
So; change the gdb commands so as to ensure we reach line 120



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15504
This commit is contained in:
Philippe Waroquiers 2015-08-06 16:42:12 +00:00
parent 78b86dbbfc
commit a57a053032
2 changed files with 6 additions and 7 deletions

View File

@ -51,9 +51,9 @@ print sleeps=1
print whoami("after next: inferior call pushed from mcbreak.stdinB.gdb")
continue
#
# encountered second break
step
finish
# encountered second break. Ensure we stop on line 120 : if (argc > 1)
break 120
continue
# delete all breaks
delete
continue

View File

@ -36,10 +36,9 @@ $14 = void
Continuing.
Breakpoint 2, main (argc=1, argv=0x........) at t.c:118
118 breakme(__LINE__); //break2
breakme (line=118) at t.c:101
101 if (line > 1000)
Run till exit from #0 breakme (line=118) at t.c:101
main (argc=1, argv=0x........) at t.c:120
Breakpoint 3 at 0x........: file t.c, line 120.
Continuing.
Breakpoint 3, main (argc=1, argv=0x........) at t.c:120
120 if (argc > 1)
Delete all breakpoints? (y or n) [answered Y; input not from terminal]
Continuing.