From 4bd05f249301e76338775741c6eb97c25f0d9c37 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Thu, 4 Apr 2013 02:16:04 +0000 Subject: [PATCH] gdb/testsuite/ * gdb.server/server-kill.exp: Use command 'tstatus' instead of 'step'. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.server/server-kill.exp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ed5878f..fc2e96a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-04-04 Yao Qi + + * gdb.server/server-kill.exp: Use command 'tstatus' instead of + 'step'. + 2013-04-03 Yao Qi * gdb.trace/mi-traceframe-changed.exp: Update tfile name to diff --git a/gdb/testsuite/gdb.server/server-kill.exp b/gdb/testsuite/gdb.server/server-kill.exp index 45a2a89..1b48152 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" -- 2.7.4