]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Set up dap log file in gdb.dap/type_checker.exp
authorTom de Vries <tdevries@suse.de>
Wed, 21 Feb 2024 09:46:08 +0000 (10:46 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 21 Feb 2024 09:46:08 +0000 (10:46 +0100)
commit3c3fe724f5f579b76e8adafb91517fbd6f34ecdc
treebb5471d6aff7e23dce20bc5d7d05e59add140116
parent9eb450d26f28f78b0b7d665971e190f583034150
[gdb/testsuite] Set up dap log file in gdb.dap/type_checker.exp

While debugging a slow-down in test-case gdb.dap/type_checker.exp due to a WIP
patch, I noticed that test-case gdb.dap/type_checker.exp doesn't have a dap
log file.

This is normally set up by dap_gdb_start, but the test-case doesn't use it.

Fix this by doing "set debug dap-log-file $logfile" in the test-case.

To make it easy to do so, I've factored out a new proc new_dap_log_file, and
while at likewise a new proc current_dap_log_file.

Note that the log file is currently empty.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.dap/type_check.exp
gdb/testsuite/lib/dap-support.exp