Enable qTStatus packet in case it is disabled
authorYao Qi <yao@codesourcery.com>
Wed, 8 Oct 2014 03:25:31 +0000 (11:25 +0800)
committerYao Qi <yao@codesourcery.com>
Sat, 11 Oct 2014 03:13:39 +0000 (11:13 +0800)
commit754dd2b00f2bd3f2d7aaacdb27375bc6faf1458e
treed387785f824df5ae374ad19f9e089fac4cbe69eb
parentf90183d7e31b335b8a6048e46805509dc56332a4
Enable qTStatus packet in case it is disabled

Nowadays, we are using command "tstatus" to send a packet to GDBserver
in order to check the connection.  However, on the target doesn't
support tracepoint, the following error is emitted before sending any
packet to GDBserver.

tstatus^M
Trace can not be run on this target.^M
(gdb) FAIL: gdb.server/server-kill.exp: tstatus

qTStatus is disabled after receiving the empty reply during connecting
to the remote target.  When the test executes command "tstatus" again,
remote_get_trace_status returns -1 at the very beginning, and no RSP
packet is sent out.

This patch is to enable qTStatus packet again.

gdb/testsuite:

2014-10-11  Yao Qi  <yao@codesourcery.com>

* gdb.server/server-kill.exp: Execute command
"set remote trace-status-packet on" before "tstatus".
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.server/server-kill.exp
This page took 0.024107 seconds and 4 git commands to generate.