diff options
author | Tom Tromey <tromey@adacore.com> | 2024-07-26 08:36:28 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-08-14 10:11:29 -0600 |
commit | 7e2d5218ff650a3091a55154cf6f1fb87f0e5e4f (patch) | |
tree | 44fc3ab858f52feea323534292a73960130d692a | |
parent | d1b72c26495947dc1f30cab4295c8cf4dd795cb2 (diff) | |
download | gdb-7e2d5218ff650a3091a55154cf6f1fb87f0e5e4f.zip gdb-7e2d5218ff650a3091a55154cf6f1fb87f0e5e4f.tar.gz gdb-7e2d5218ff650a3091a55154cf6f1fb87f0e5e4f.tar.bz2 |
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.
-rw-r--r-- | gdb/python/lib/gdb/dap/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/lib/gdb/dap/__init__.py b/gdb/python/lib/gdb/dap/__init__.py index 51b9546..145aeb6 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) |