aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/debug.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-01-16 21:21:24 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-01-18 13:44:32 -0500
commitc68665c7260985ac8497ccafcea961f4a261c675 (patch)
treee191f41840a74d69d137aac3772bef48b04e3367 /gdbserver/debug.h
parentd66beefaf6334d69b638b3300e264f7996c572dc (diff)
downloadgdb-c68665c7260985ac8497ccafcea961f4a261c675.zip
gdb-c68665c7260985ac8497ccafcea961f4a261c675.tar.gz
gdb-c68665c7260985ac8497ccafcea961f4a261c675.tar.bz2
gdbserver: turn debug_threads into a boolean
debug_threads is always used as a boolean. Except in ax.cc and tracepoint.cc. These files have their own macros that use debug_threads, and have a concept of verbosity level. But they both have a single level, so it's just a boolean in the end. Remove this concept of level. If we ever want to re-introduce it, I think it will be better implemented in a more common location. Change debug_threads to bool and adjust some users that were treating it as an int. Change-Id: I137f596eaf763a08c977dd74417969cedfee9ecf
Diffstat (limited to 'gdbserver/debug.h')
-rw-r--r--gdbserver/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/debug.h b/gdbserver/debug.h
index 6c5f997..20cb4e7 100644
--- a/gdbserver/debug.h
+++ b/gdbserver/debug.h
@@ -33,7 +33,7 @@ extern int using_threads;
/* Enable miscellaneous debugging output. The name is historical - it
was originally used to debug LinuxThreads support. */
-extern int debug_threads;
+extern bool debug_threads;
extern int debug_timestamp;