From 7e2d5218ff650a3091a55154cf6f1fb87f0e5e4f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 26 Jul 2024 08:36:28 -0600 Subject: [PATCH] Log gdb version and configuration in DAP 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/python/lib/gdb/dap/__init__.py b/gdb/python/lib/gdb/dap/__init__.py index 51b95468a70..145aeb611fc 100644 --- a/gdb/python/lib/gdb/dap/__init__.py +++ b/gdb/python/lib/gdb/dap/__init__.py @@ -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) -- 2.47.2