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.
This commit is contained in:
Tom Tromey
2024-07-26 08:36:28 -06:00
parent d1b72c2649
commit 7e2d5218ff

View File

@@ -92,5 +92,8 @@ def pre_command_loop():
# session. # session.
session_started = True session_started = True
startup.thread_log("starting DAP server") 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 global server
startup.start_dap(server.main_loop) startup.start_dap(server.main_loop)