aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-02-15 12:48:55 +0000
committerPedro Alves <palves@redhat.com>2012-02-15 12:48:55 +0000
commit7cee1e5405310dae3ab7f6356d56f6b5f69e4b2c (patch)
treed3ff9606d14241207427d87dcac8d80c388f7e2e /gdb/testsuite/gdb.server
parentf9fa4a63414294ef4eb46f6acb5b649382620f2a (diff)
downloadgdb-7cee1e5405310dae3ab7f6356d56f6b5f69e4b2c.zip
gdb-7cee1e5405310dae3ab7f6356d56f6b5f69e4b2c.tar.gz
gdb-7cee1e5405310dae3ab7f6356d56f6b5f69e4b2c.tar.bz2
gdb/
2012-02-15 Pedro Alves <palves@redhat.com> * remote.c (remote_detach_1, extended_remote_attach_1): Tweak output to be like native targets'. (remote_pid_to_str): Special case the null ptid. gdb/testsuite/ 2012-02-15 Pedro Alves <palves@redhat.com> Support extended-remote. Avoid cascading timeouts. * gdb.base/attach.exp (do_attach_tests): Add expected output for the extended-remote target. If attaching with no file fails, load the file manually. * gdb.server/ext-attach.exp: Adjust expected attach/detach output.
Diffstat (limited to 'gdb/testsuite/gdb.server')
-rw-r--r--gdb/testsuite/gdb.server/ext-attach.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.server/ext-attach.exp b/gdb/testsuite/gdb.server/ext-attach.exp
index edf08fd..d9c7c0c 100644
--- a/gdb/testsuite/gdb.server/ext-attach.exp
+++ b/gdb/testsuite/gdb.server/ext-attach.exp
@@ -57,14 +57,16 @@ if { [istarget "*-*-cygwin*"] } {
set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
}
-gdb_test "attach $testpid" "Attached to.*" \
+gdb_test "attach $testpid" \
+ "Attaching to program: .*, process $testpid.*(in|at).*" \
"attach to remote program 1"
gdb_test "backtrace" ".*main.*" "backtrace 1"
-gdb_test "detach" "Detached from remote process.*\\."
+gdb_test "detach" "Detaching from program.*process.*"
gdb_test "backtrace" "No stack\\." "backtrace with no program"
-gdb_test "attach $testpid" "Attached to.*" \
+gdb_test "attach $testpid" \
+ "Attaching to program: .*, process $testpid.*(in|at).*" \
"attach to remote program 2"
gdb_test "backtrace" ".*main.*" "backtrace 2"