testsuite: Add option to capture gdbserver debug
authorAlan Hayward <alan.hayward@arm.com>
Fri, 12 Apr 2019 15:36:51 +0000 (16:36 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Thu, 25 Apr 2019 15:37:03 +0000 (16:37 +0100)
commitdd06d4d6889ee58b76255b775f52ba8e475a7a2d
tree76beeb6ca041398cc0e7d01c7f96af3d940e13d1
parent6fe014bcd33686cb75e6355f9c36ce483a64ec62
testsuite: Add option to capture gdbserver debug

Add both board option and environment variable which enables gdbserver
debug and sends it to the file gdbserver.debug, located in the output
directory for the current test.  Document this.

Add support for the environment variable in the Makefile.

The testsuite can be run with gdbserver debug enabled in the following way:

make check GDBSERVER_DEBUG=all

Disable tspeed.exp when debugging to prevent the log file filling
many gigabytes then timing out.

gdb/testsuite/ChangeLog:

* Makefile.in: Pass through GDBSERVER_DEBUG.
        * README (Testsuite Parameters): Add GDBSERVER_DEBUG.
        (gdbserver,debug): Add board setting.
        * gdb.trace/tspeed.exp: Skip when debugging.
* lib/gdb.exp (gdbserver_debug_enabled): New procedure.
* lib/gdbserver-support.exp: Likewise
gdb/testsuite/ChangeLog
gdb/testsuite/Makefile.in
gdb/testsuite/README
gdb/testsuite/gdb.trace/tspeed.exp
gdb/testsuite/lib/gdb.exp
gdb/testsuite/lib/gdbserver-support.exp