aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi2-console.exp
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-04-05 17:12:46 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-04-05 17:12:46 +0000
commitbb3784283e3ddfb19761aabcc5ade9956e34b311 (patch)
treedaa7163a406290ffcc15b95ec03b0aaf6b2a5a81 /gdb/testsuite/gdb.mi/mi2-console.exp
parent051568b4d03e758bfc57f55cfda27b65879edd7e (diff)
downloadgdb-bb3784283e3ddfb19761aabcc5ade9956e34b311.zip
gdb-bb3784283e3ddfb19761aabcc5ade9956e34b311.tar.gz
gdb-bb3784283e3ddfb19761aabcc5ade9956e34b311.tar.bz2
* lib/mi-support.exp (mi_expect_stop): New.
(mi_run_cmd): Change the token. Use mi_send_resuming_command, use mi_expect_stop. (mi_execute_to_helper): Rename to mi_execute_to. (mi_send_resuming_command): Add more error patterns. (mi_wait_for_stop): Renamed to... (mi_get_stop_line): ...this. (mi_run_inline_test): Adjust. * gdb.mi/mi-cli.exp: Use mi_execute_to/mi_expect_stop. * gdb.mi/mi-console.exp: Likewise. * gdb.mi/mi-pending.exp: Likewise. * gdb.mi/mi-simplerun.exp: Likewise. * gdb.mi/mi-stack.exp: Likewise. * gdb.mi/mi-stepi.exp: Likewise. * gdb.mi/mi-syn-frame.exp: Add comment. * gdb.mi/mi-until.exp: Likewise. * gdb.mi/mi-var-display.exp: Likewise. * gdb.mi/mi-watch.exp: Likewise. * gdb.mi/mi2-cli.exp: Likewise. * gdb.mi/mi2-console.exp: Likewise. * gdb.mi/mi2-simplerun.exp: Likewise. * gdb.mi/mi2-stack.exp: Likewise. * gdb.mi/mi2-stepi.exp: Likewise. * gdb.mi/mi2-until.exp: Likewise. * gdb.mi/mi2-var-display.exp: Likewise. * gdb.mi/mi2-watch.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi2-console.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi2-console.exp14
1 files changed, 4 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.mi/mi2-console.exp b/gdb/testsuite/gdb.mi/mi2-console.exp
index 92d13c1..88b4fdd 100644
--- a/gdb/testsuite/gdb.mi/mi2-console.exp
+++ b/gdb/testsuite/gdb.mi/mi2-console.exp
@@ -51,9 +51,9 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
mi_run_to_main
# Next over the hello() call which will produce lots of output
-send_gdb "47-exec-next\n"
+send_gdb "220-exec-next\n"
gdb_expect {
- -re "47\\^running\r\n$mi_gdb_prompt" {
+ -re "220\\^running\r\n$mi_gdb_prompt" {
pass "Started step over hello"
}
timeout {
@@ -83,14 +83,8 @@ if { ![target_info exists gdb,noinferiorio] } {
}
}
-gdb_expect {
- -re "47\\*stopped.*$mi_gdb_prompt$" {
- pass "Finished step over hello"
- }
- timeout {
- fail "Finished step over hello (timeout)"
- }
-}
+mi_expect_stop "end-stepping-range" "main" "" ".*mi-console.c" "14" "" \
+ "finished step over hello"
mi_gdb_exit
return 0