aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-11-30 17:41:14 +0000
committerDoug Evans <dje@google.com>2010-11-30 17:41:14 +0000
commit5fa290c134cb9573795d3abf8903d4ccc50980a0 (patch)
treed059354886f115ffa09e3b4b9d3fc50d76ae21a9 /gdb/testsuite/gdb.arch
parentc3e5cf5f4d06bd43a1d9e72b7067ce93726d329a (diff)
downloadgdb-5fa290c134cb9573795d3abf8903d4ccc50980a0.zip
gdb-5fa290c134cb9573795d3abf8903d4ccc50980a0.tar.gz
gdb-5fa290c134cb9573795d3abf8903d4ccc50980a0.tar.bz2
* lib/gdb.exp (gdb_test_sequence): Return result of gdb_expect_list.
(gdb_expect_list): Fix spelling errors in comments. * gdb.arch/system-gcore.exp: Use gdb_test_sequence instead of send_gdb/gdb_expect_list where applicable. * gdb.base/call-ar-st.exp: Ditto. * gdb.base/funcargs.exp: Ditto. * gdb.base/gcore.exp: Ditto. * gdb.base/page.exp: Ditto. * gdb.base/sigaltstack.exp: Ditto. * gdb.base/siginfo.exp: Ditto. * gdb.base/sigstep.exp: Ditto. * gdb.base/trace-commands.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.arch')
-rw-r--r--gdb/testsuite/gdb.arch/system-gcore.exp21
1 files changed, 10 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.arch/system-gcore.exp b/gdb/testsuite/gdb.arch/system-gcore.exp
index 3a86c4b..723c4c6 100644
--- a/gdb/testsuite/gdb.arch/system-gcore.exp
+++ b/gdb/testsuite/gdb.arch/system-gcore.exp
@@ -154,17 +154,16 @@ gdb_expect {
}
}
-send_gdb "where\n"
-gdb_expect_list "where in corefile" ".*$gdb_prompt $" {
- ".*\[\r\n\]+#0 .* terminal_func \\(\\) at "
- ".*\[\r\n\]+#1 .* array_func \\(\\) at "
- ".*\[\r\n\]+#2 .* factorial_func \\(value=1\\) at "
- ".*\[\r\n\]+#3 .* factorial_func \\(value=2\\) at "
- ".*\[\r\n\]+#4 .* factorial_func \\(value=3\\) at "
- ".*\[\r\n\]+#5 .* factorial_func \\(value=4\\) at "
- ".*\[\r\n\]+#6 .* factorial_func \\(value=5\\) at "
- ".*\[\r\n\]+#7 .* factorial_func \\(value=6\\) at "
- ".*\[\r\n\]+#8 .* main \\(.*\\) at "
+gdb_test_sequence "where" "where in corefile" {
+ "\[\r\n\]+#0 .* terminal_func \\(\\) at "
+ "\[\r\n\]+#1 .* array_func \\(\\) at "
+ "\[\r\n\]+#2 .* factorial_func \\(value=1\\) at "
+ "\[\r\n\]+#3 .* factorial_func \\(value=2\\) at "
+ "\[\r\n\]+#4 .* factorial_func \\(value=3\\) at "
+ "\[\r\n\]+#5 .* factorial_func \\(value=4\\) at "
+ "\[\r\n\]+#6 .* factorial_func \\(value=5\\) at "
+ "\[\r\n\]+#7 .* factorial_func \\(value=6\\) at "
+ "\[\r\n\]+#8 .* main \\(.*\\) at "
}
set post_corefile_regs [capture_command_output "info registers" ""]