]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Log gdb version and configuration in DAP
authorTom Tromey <tromey@adacore.com>
Fri, 26 Jul 2024 14:36:28 +0000 (08:36 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 14 Aug 2024 16:11:29 +0000 (10:11 -0600)
I think it would be useful for gdb's DAP logs to come with the version
and configuration information.  This might make debugging some bug
reports a little simpler.

gdb/python/lib/gdb/dap/__init__.py

index 51b95468a7026ea1d5c8859b5dc414250e18b48e..145aeb611fc0d0862aa2af009f34256a12a157dd 100644 (file)
@@ -92,5 +92,8 @@ def pre_command_loop():
         # session.
         session_started = True
         startup.thread_log("starting DAP server")
+        # These are handy for bug reports.
+        startup.exec_and_log("show version")
+        startup.exec_and_log("show configuration")
         global server
         startup.start_dap(server.main_loop)