aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/siginfo.exp
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.base/siginfo.exp
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.base/siginfo.exp')
-rw-r--r--gdb/testsuite/gdb.base/siginfo.exp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/siginfo.exp b/gdb/testsuite/gdb.base/siginfo.exp
index 03f4c20..955cadc 100644
--- a/gdb/testsuite/gdb.base/siginfo.exp
+++ b/gdb/testsuite/gdb.base/siginfo.exp
@@ -62,11 +62,10 @@ if { ![runto_main] } then {
# Run to the signal handler, validate the backtrace.
gdb_test "break handler"
gdb_test "continue" ".* handler .*" "continue to stepi handler"
-send_gdb "bt\n"
-gdb_expect_list "backtrace for nexti" ".*$gdb_prompt $" {
+gdb_test_sequence "bt" "backtrace for nexti" {
"\[\r\n\]+.0 \[^\r\n\]* handler "
"\[\r\n\]+.1 .signal handler called."
- "\[\r\n\]+.2 \[^\r\n\]* main .*"
+ "\[\r\n\]+.2 \[^\r\n\]* main "
}
# Check that GDB can step the inferior back to main