From 5b0a3d62423236100bac1e77f7cc084ad9ce0271 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Fri, 12 Nov 2021 10:30:27 +0000 Subject: 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 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 935a10c..1e4afa9 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -60,6 +60,10 @@ exit You can now exit GDB by using the new command "exit", in addition to the existing "quit" command. +set debug threads on|off +show debug threads + Print additional debug messages about thread creation and deletion. + * Changed commands maint packet -- cgit v1.1