|
From: <sv...@va...> - 2015-08-06 16:42:20
|
Author: philippe
Date: Thu Aug 6 17:42:12 2015
New Revision: 15504
Log:
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
Modified:
trunk/gdbserver_tests/mcbreak.stdinB.gdb
trunk/gdbserver_tests/mcbreak.stdoutB.exp
Modified: trunk/gdbserver_tests/mcbreak.stdinB.gdb
==============================================================================
--- trunk/gdbserver_tests/mcbreak.stdinB.gdb (original)
+++ trunk/gdbserver_tests/mcbreak.stdinB.gdb Thu Aug 6 17:42:12 2015
@@ -51,9 +51,9 @@
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
Modified: trunk/gdbserver_tests/mcbreak.stdoutB.exp
==============================================================================
--- trunk/gdbserver_tests/mcbreak.stdoutB.exp (original)
+++ trunk/gdbserver_tests/mcbreak.stdoutB.exp Thu Aug 6 17:42:12 2015
@@ -36,10 +36,9 @@
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.
|