diff options
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.server/server-kill.exp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 14e2d5c..348adff 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2014-10-11 Yao Qi <yao@codesourcery.com> + * gdb.server/server-kill.exp: Execute command + "set remote trace-status-packet on" before "tstatus". + +2014-10-11 Yao Qi <yao@codesourcery.com> + * gdb.server/server-kill.c: Include sys/types.h and unistd.h. (main): Call getppid. * gdb.server/server-kill.exp: Set breakpoint on line "i = 0;" diff --git a/gdb/testsuite/gdb.server/server-kill.exp b/gdb/testsuite/gdb.server/server-kill.exp index 83c11f2..53d8e9a 100644 --- a/gdb/testsuite/gdb.server/server-kill.exp +++ b/gdb/testsuite/gdb.server/server-kill.exp @@ -52,6 +52,11 @@ if {$server_pid == "" } { remote_exec target "kill -9 $server_pid" +# Enable trace status packet which is disabled after the connection +# if the remote target doesn't support tracepoint at all. Otherwise, +# no RSP packet is sent out. +gdb_test_no_output "set remote trace-status-packet on" + # Force GDB to talk with GDBserver, so that we can get the # "connection closed" error. gdb_test "tstatus" {Remote connection closed|Remote communication error\. Target disconnected\.: Connection reset by peer\.} |