]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/NEWS
gdb: add threads debugging switch
authorAndrew Burgess <aburgess@redhat.com>
Fri, 12 Nov 2021 10:30:27 +0000 (10:30 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 22 Dec 2021 15:02:02 +0000 (15:02 +0000)
commit5b0a3d62423236100bac1e77f7cc084ad9ce0271
tree20b00bb936aa1c35f8281ddceba9d47e6d9543c3
parent85adb21d04edea0c7b0408a9660d5a9a5aca9ae2
gdb: add threads debugging switch

Add new commands:

  set debug threads on|off
  show debug threads

Prints additional debug information relating to thread creation and
deletion.

GDB already announces when threads are created of course.... most of
the time, but sometimes threads are added silently, in which case this
debug message is the only mechanism to see the thread being added.
Also, though GDB does announce when a thread exits, it doesn't
announce when the thread object is deleted, I've added a debug message
for that.

Additionally, having message printed through the debug system will
cause the messages to be nested to an appropriate depth when other
debug sub-systems are turned on (especially things like `infrun` and
`lin-lwp`).
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/gdbthread.h
gdb/inferior.c
gdb/thread.c