Building with threads and without thread dump (e.g. macos, freebsd)
warns that thread_dump_state is unused. This happened in fact with
recentcommit
1229ef312 ("MINOR: wdt: do not rely on threads_to_dump
anymore"). The solution would be to mark it unused, but after a
second thought, it can be convenient to keep it exported to help
debug crashes, so let's export it again. It's just not referenced in
include files since it's not needed outside.
* adds 1<<16 and sets the lowest 15 bits to the ID of the next thread to
* dump + 1. Only used when USE_THREAD_DUMP is set.
*/
-static volatile unsigned int thread_dump_state = 0;
+volatile unsigned int thread_dump_state = 0;
unsigned int debug_commands_issued = 0;
/* dumps a backtrace of the current thread that is appended to buffer <buf>.