aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/README
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2019-04-30 16:00:29 +0100
committerAlan Hayward <alan.hayward@arm.com>2019-05-17 16:44:17 +0100
commitb420b89e4b321ff31f2e76cac499b908f042069b (patch)
treec96ab0dac761d97a468a7efdf4d76d1484fe26df /gdb/testsuite/README
parent408e9b8b9ebeb854baea9aac52fa8df4d41eb53d (diff)
downloadgdb-b420b89e4b321ff31f2e76cac499b908f042069b.zip
gdb-b420b89e4b321ff31f2e76cac499b908f042069b.tar.gz
gdb-b420b89e4b321ff31f2e76cac499b908f042069b.tar.bz2
testsuite: Add replay logging to GDBSERVER_DEBUG
Add "replay" to the list of GDBSERVER_DEBUG options. This will cause a gdbserver.replay file to be written to the test output directory. At the same time switch this to a comma separated list in order to easily handle all possible options. The replay log is created by GDB, but has been added to GDBSERVER_DEBUG as it is only required for gdbserver tests. To enable it, the gdb_debug_init is overridden to allow the additional checking, before calling the original function. gdb/testsuite/ChangeLog: * README (Testsuite Parameters): Add replay logging to GDBSERVER_DEBUG. (gdbserver,debug): Refer to GDBSERVER_DEBUG. * lib/gdbserver-support.exp (gdbserver_start): Treat gdbserverdebug as a comma separated list. (gdb_debug_init): Override procedure.
Diffstat (limited to 'gdb/testsuite/README')
-rw-r--r--gdb/testsuite/README21
1 files changed, 10 insertions, 11 deletions
diff --git a/gdb/testsuite/README b/gdb/testsuite/README
index 43f35a9..98fc8d1 100644
--- a/gdb/testsuite/README
+++ b/gdb/testsuite/README
@@ -304,14 +304,16 @@ For example, to turn on debugging for infrun and target, you can do:
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:
+When set gdbserver debug is sent to the a file in the test output directory.
+It should be set to a comma separated list of the following options:
+ debug - write gdbserver debug to gdbserver.debug.
+ remote - write gdbserver remote debug to gdbserver.debug.
+ replay - write a replay log to the file gdbserver.replay for use
+ with gdbreplay.
+Alternatively, it can be set to "all" to turn on all the above
+For example, to turn on gdbserver debugging, you can do:
- make check GDBSERVER_DEBUG=all
+ make check GDBSERVER_DEBUG="debug,replay"
Race detection
**************
@@ -527,10 +529,7 @@ gdb,debug
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.
+ output directory. For valid values see the entry for GDBSERVER_DEBUG.
Testsuite Organization
**********************