Log gdb version and configuration in DAP
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Test passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Test passed
|
Commit Message
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(+)
Comments
>>>>> "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
@@ -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)