]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/dap] Factor out thread_log
authorTom de Vries <tdevries@suse.de>
Thu, 22 Feb 2024 10:35:26 +0000 (11:35 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 22 Feb 2024 10:35:26 +0000 (11:35 +0100)
commit67cf0bd885e3862fb77de0039208d39cc89dba91
tree5a5813a88203390dc417d6f6ab22552287204e2d
parent852784a93664e59be090a518e6d83464bcc0cf00
[gdb/dap] Factor out thread_log

In thread_wrapper I used a style where a message is prefixed with the thread
name.

Factor this out into a new function thread_log.

Also treat the GDB main thread special, because it's usual name is MainThread:
...
MainThread: <msg>
...
which is the default name assigned by python, so instead use the more
explicit:
...
GDB main: <msg>
...

Tested on aarch64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/python/lib/gdb/dap/startup.py