diff options
author | Alan Hayward <alan.hayward@arm.com> | 2019-04-12 16:36:51 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2019-04-25 16:37:03 +0100 |
commit | dd06d4d6889ee58b76255b775f52ba8e475a7a2d (patch) | |
tree | 76beeb6ca041398cc0e7d01c7f96af3d940e13d1 /gdb/testsuite/gdb.trace/tspeed.exp | |
parent | 6fe014bcd33686cb75e6355f9c36ce483a64ec62 (diff) | |
download | gdb-dd06d4d6889ee58b76255b775f52ba8e475a7a2d.zip gdb-dd06d4d6889ee58b76255b775f52ba8e475a7a2d.tar.gz gdb-dd06d4d6889ee58b76255b775f52ba8e475a7a2d.tar.bz2 |
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
Diffstat (limited to 'gdb/testsuite/gdb.trace/tspeed.exp')
-rw-r--r-- | gdb/testsuite/gdb.trace/tspeed.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/tspeed.exp b/gdb/testsuite/gdb.trace/tspeed.exp index 6fd812e..9afec64 100644 --- a/gdb/testsuite/gdb.trace/tspeed.exp +++ b/gdb/testsuite/gdb.trace/tspeed.exp @@ -19,6 +19,11 @@ if {[skip_shlib_tests]} { return 0 } +# Do not run if gdbsever debug is enabled - the output file is many Gb. +if [gdbserver_debug_enabled] { + return 0 +} + standard_testfile set executable $testfile |