summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2008-09-07 00:29:15 +0000
committerMichael Snyder <msnyder@specifix.com>2008-09-07 00:29:15 +0000
commitd10014e41ca84a3baaf520c5d705855dde3e76d4 (patch)
treee540f7e927ca410d115208a74a674ee523724893
parent78f8f46e7591b0f3b1e0007fa78ee323e818ec24 (diff)
downloadgdb-d10014e41ca84a3baaf520c5d705855dde3e76d4.tar.gz
2008-09-06 Michael Snyder <msnyder@vmware.com>
* gdb.twreverse/step-reverse.exp: Add $gdb_prompt to regexps.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.twreverse/step-reverse.exp62
2 files changed, 35 insertions, 31 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index cb30a111042..ea2401be8bd 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-06 Michael Snyder <msnyder@vmware.com>
+
+ * gdb.twreverse/step-reverse.exp: Add $gdb_prompt to regexps.
+
2008-09-05 Michael Snyder <msnyder@vmware.com>
* gdb.twreverse/finish-reverse.exp: New file.
diff --git a/gdb/testsuite/gdb.twreverse/step-reverse.exp b/gdb/testsuite/gdb.twreverse/step-reverse.exp
index 66656ae74d7..19eeb5d4e1e 100644
--- a/gdb/testsuite/gdb.twreverse/step-reverse.exp
+++ b/gdb/testsuite/gdb.twreverse/step-reverse.exp
@@ -57,10 +57,10 @@ gdb_test "step" ".*ARRIVED IN CALLEE.*" "step into call"
set test_message "finish out of fn call"
gdb_test_multiple "finish" "$test_message" {
- -re "FINISH TEST" {
+ -re "FINISH TEST.*$gdb_prompt $" {
pass "$test_message"
}
- -re "STEP INTO THIS CALL" {
+ -re "STEP INTO THIS CALL.*$gdb_prompt $" {
send_gdb "step\n"
exp_continue
}
@@ -70,14 +70,14 @@ gdb_test_multiple "finish" "$test_message" {
set test_message "simple stepi"
gdb_test_multiple "stepi" "$test_message" {
- -re "STEPI TEST" {
+ -re "STEPI TEST.*$gdb_prompt $" {
pass "$test_message"
}
- -re "FINISH TEST" {
+ -re "FINISH TEST.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "NEXTI TEST" {
+ -re "NEXTI TEST.*$gdb_prompt $" {
fail "$test_message (too far)"
}
}
@@ -86,16 +86,16 @@ gdb_test_multiple "stepi" "$test_message" {
set test_message "stepi into function call"
gdb_test_multiple "stepi" "$test_message" {
- -re "ARRIVED IN CALLEE" {
+ -re "ARRIVED IN CALLEE.*$gdb_prompt $" {
pass "$test_message"
}
- -re "NEXTI TEST" {
+ -re "NEXTI TEST.*$gdb_prompt $" {
fail "$test_message (too far)"
}
- -re "RETURN FROM CALLEE" {
+ -re "RETURN FROM CALLEE.*$gdb_prompt $" {
fail "$test_message (too far)"
}
- -re "ENTER CALLEE" {
+ -re "ENTER CALLEE.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
@@ -105,22 +105,22 @@ gdb_test_multiple "stepi" "$test_message" {
set test_message "stepi back from function call"
gdb_test_multiple "stepi" "$test_message" {
- -re "NEXTI TEST" {
+ -re "NEXTI TEST.*$gdb_prompt $" {
pass "$test_message"
}
- -re "ARRIVED IN CALLEE" {
+ -re "ARRIVED IN CALLEE.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "RETURN FROM CALLEE" {
+ -re "RETURN FROM CALLEE.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "STEPI TEST" {
+ -re "STEPI TEST.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "ENTER CALLEE" {
+ -re "ENTER CALLEE.*$gdb_prompt $" {
fail "$test_message (too far)"
}
}
@@ -139,24 +139,24 @@ gdb_test "set exec-dir reverse" "" "set reverse execution"
set stepi_location [gdb_get_line_number "ARRIVED IN CALLEE" step-reverse.c]
set test_message "reverse stepi thru function return"
gdb_test_multiple "stepi" "$test_message" {
- -re "NEXTI TEST" {
+ -re "NEXTI TEST.*$gdb_prompt $" {
fail "$test_message (start statement)"
}
- -re "RETURN FROM CALLEE" {
+ -re "RETURN FROM CALLEE.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "$hex\[ \t\]*$stepi_location\[ \t\].*ARRIVED IN CALLEE" {
+ -re "$hex\[ \t\]*$stepi_location.*ARRIVED IN CALLEE.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "ARRIVED IN CALLEE" {
+ -re "ARRIVED IN CALLEE.*$gdb_prompt $" {
pass "$test_message"
}
- -re "ENTER CALLEE" {
+ -re "ENTER CALLEE.*$gdb_prompt $" {
fail "$test_message (too far)"
}
- -re "STEPI TEST" {
+ -re "STEPI TEST.*$gdb_prompt $" {
fail "$test_message (too far)"
}
}
@@ -166,21 +166,21 @@ gdb_test_multiple "stepi" "$test_message" {
set stepi_location [gdb_get_line_number "FINISH TEST" step-reverse.c]
set test_message "reverse stepi from a function call"
gdb_test_multiple "stepi" "$test_message" {
- -re "ARRIVED IN CALLEE" {
+ -re "ARRIVED IN CALLEE.*$gdb_prompt $" {
fail "$test_message (start statement)"
}
- -re "ENTER CALLEE" {
+ -re "ENTER CALLEE.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "${hex}\[ \t\]*$stepi_location\[ \t\].*STEPI TEST" {
+ -re "${hex}\[ \t\]*$stepi_location.*STEPI TEST.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "STEPI TEST" {
+ -re "STEPI TEST.*$gdb_prompt $" {
pass "$test_message"
}
- -re "STEP INTO THIS CALL" {
+ -re "STEP INTO THIS CALL.*$gdb_prompt $" {
fail "$test_message (too far)"
}
}
@@ -190,17 +190,17 @@ gdb_test_multiple "stepi" "$test_message" {
set stepi_location [gdb_get_line_number "FINISH TEST" step-reverse.c]
set test_message "simple reverse stepi"
gdb_test_multiple "stepi" "$test_message" {
- -re "STEPI TEST" {
+ -re "STEPI TEST.*$gdb_prompt $" {
fail "$test_message (start statement)"
}
- -re "$hex\[ \t\]*$stepi_location\[ \t\].* FINISH TEST" {
+ -re "$hex\[ \t\]*$stepi_location.* FINISH TEST.*$gdb_prompt $" {
send_gdb "stepi\n"
exp_continue
}
- -re "$stepi_location\[ \t\].* FINISH TEST" {
+ -re "$stepi_location\[ \t\].* FINISH TEST.*$gdb_prompt $" {
pass "$test_message"
}
- -re "STEP INTO THIS CALL" {
+ -re "STEP INTO THIS CALL.*$gdb_prompt $" {
fail "$test_message (too far)"
}
}
@@ -209,11 +209,11 @@ gdb_test_multiple "stepi" "$test_message" {
set test_message "reverse step into fn call"
gdb_test_multiple "step" "$test_message" {
- -re "RETURN FROM CALLEE" {
+ -re "RETURN FROM CALLEE.*$gdb_prompt $" {
send_gdb "step\n"
exp_continue
}
- -re "ARRIVED IN CALLEE" {
+ -re "ARRIVED IN CALLEE.*$gdb_prompt $" {
pass "$test_message"
}
}