aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-04-04 02:16:04 +0000
committerYao Qi <yao@codesourcery.com>2013-04-04 02:16:04 +0000
commit4bd05f249301e76338775741c6eb97c25f0d9c37 (patch)
tree86f127c995d67d3dd97ee29d3d22ad466eef6e0b /gdb/testsuite/gdb.server/server-kill.exp
parentmerge from gcc (diff)
downloadbinutils-gdb-4bd05f249301e76338775741c6eb97c25f0d9c37.tar.gz
binutils-gdb-4bd05f249301e76338775741c6eb97c25f0d9c37.tar.bz2
binutils-gdb-4bd05f249301e76338775741c6eb97c25f0d9c37.zip
gdb/testsuite/
* gdb.server/server-kill.exp: Use command 'tstatus' instead of 'step'.
Diffstat (limited to 'gdb/testsuite/gdb.server/server-kill.exp')
-rw-r--r--gdb/testsuite/gdb.server/server-kill.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.server/server-kill.exp b/gdb/testsuite/gdb.server/server-kill.exp
index 45a2a895464..1b4815251b3 100644
--- a/gdb/testsuite/gdb.server/server-kill.exp
+++ b/gdb/testsuite/gdb.server/server-kill.exp
@@ -40,4 +40,6 @@ delete_breakpoints
set server_pid [exp_pid -i [board_info target fileid]]
remote_exec target "kill -9 $server_pid"
-gdb_test "step" "Remote connection closed"
+# Force GDB to talk with GDBserver, so that we can get the
+# "connection closed" error.
+gdb_test "tstatus" "Remote connection closed"