* [PATCH] Log gdb version and configuration in DAP
@ 2024-07-26 14:37 Tom Tromey
2024-08-14 16:11 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2024-07-26 14:37 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
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.45.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Log gdb version and configuration in DAP
2024-07-26 14:37 [PATCH] Log gdb version and configuration in DAP Tom Tromey
@ 2024-08-14 16:11 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2024-08-14 16:11 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> I think it would be useful for gdb's DAP logs to come with the version
Tom> and configuration information. This might make debugging some bug
Tom> reports a little simpler.
I'm checking this in.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-14 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-26 14:37 [PATCH] Log gdb version and configuration in DAP Tom Tromey
2024-08-14 16:11 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).