2011-05-20 Pedro Alves <pedro@codesourcery.com>
Cope with async mode. gdb/testsuite/ * gdb.mi/mi-break.exp (test_breakpoint_commands): Split gdb_test into gdb_test + mi_expect_stop.
This commit is contained in:
parent
b275f2d2f2
commit
4a07b7dac5
@ -1,3 +1,11 @@
|
|||||||
|
2011-05-20 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
Cope with async mode.
|
||||||
|
|
||||||
|
gdb/testsuite/
|
||||||
|
* gdb.mi/mi-break.exp (test_breakpoint_commands): Split gdb_test
|
||||||
|
into gdb_test + mi_expect_stop.
|
||||||
|
|
||||||
2011-05-20 Pedro Alves <pedro@codesourcery.com>
|
2011-05-20 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* gdb.mi/basics.c: Don't include stdio.h or unistd.h.
|
* gdb.mi/basics.c: Don't include stdio.h or unistd.h.
|
||||||
|
@ -232,10 +232,19 @@ proc test_breakpoint_commands {} {
|
|||||||
"\\^done" \
|
"\\^done" \
|
||||||
"breakpoint commands: set commands"
|
"breakpoint commands: set commands"
|
||||||
|
|
||||||
mi_send_resuming_command "exec-continue" "test hitting breakpoint with commands"
|
mi_send_resuming_command "exec-continue" "breakpoint commands: continue"
|
||||||
mi_gdb_test "" \
|
|
||||||
".*\\\$1 = 0.*\\\$10 = 9.*\\*running.*\\*stopped,reason=\"exited-normally\".*" \
|
set test "intermediate stop and continue"
|
||||||
"test hitting breakpoint with commands"
|
gdb_expect {
|
||||||
|
-re ".*\\\$1 = 0.*\\\$10 = 9.*\\*running" {
|
||||||
|
pass $test
|
||||||
|
}
|
||||||
|
timeout {
|
||||||
|
fail $test
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mi_expect_stop "exited-normally" "" "" "" "" "" "test hitting breakpoint with commands"
|
||||||
}
|
}
|
||||||
|
|
||||||
test_tbreak_creation_and_listing
|
test_tbreak_creation_and_listing
|
||||||
|
Loading…
Reference in New Issue
Block a user