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/README | |
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/README')
-rw-r--r-- | gdb/testsuite/README | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/testsuite/README b/gdb/testsuite/README index db90ea4..99d5745 100644 --- a/gdb/testsuite/README +++ b/gdb/testsuite/README @@ -293,6 +293,17 @@ can do: make check TS=1 TS_FORMAT='[%b %H:%S]' +GDBSERVER_DEBUG + +When set gdbserver debug is sent to the file gdbserver.debug in the test +output directory. Valid values are: + debug - turn on gdbserver debug. + remote - turn on gdbserver remote debug. + all - turn on all the above debug options. +For example, to turn on all gdbserver debugging, you can do: + + make check GDBSERVER_DEBUG=all + Race detection ************** @@ -497,6 +508,14 @@ gdb,nopie_flag The flag required to force the compiler to produce non-position-independent executables. +gdbserver,debug + + When set gdbserver debug is sent to the file gdbserver.debug in the test + output directory. Valid values are: + "debug" - turn on gdbserver debug. + "remote" - turn on gdbserver remote debug. + "all" - turn on all the above debug options. + Testsuite Organization ********************** |