aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/debug.c
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-09-20 11:40:09 +0900
committerChristian Biesinger <cbiesinger@google.com>2019-09-21 11:00:50 +0900
commitf9d949fb7b85323e3f307884a4a3cef6ba52607b (patch)
treed0faee6739af74b56afda346383fd72665ba58c2 /gdb/gdbserver/debug.c
parenta7773afff9035cb0e450478bcfe88a5920957e46 (diff)
downloadbinutils-f9d949fb7b85323e3f307884a4a3cef6ba52607b.zip
binutils-f9d949fb7b85323e3f307884a4a3cef6ba52607b.tar.gz
binutils-f9d949fb7b85323e3f307884a4a3cef6ba52607b.tar.bz2
Move declarations of debug_threads and using_threads to header
Instead of declaring debug_threads and using_threads in several .c files, declare them in debug.h. gdb/gdbserver/ChangeLog: 2019-09-20 Christian Biesinger <cbiesinger@google.com> * debug.c (debug_threads): Remove comment in favor of the header. * debug.h (using_threads): Add declaration. (debug_threads): Add comment. * linux-aarch64-low.c: Include debug.h and remove declaration of debug_threads. * nto-low.c: Likewise. * remote-utils.c: Likewise. * thread-db.c: Likewise.
Diffstat (limited to 'gdb/gdbserver/debug.c')
-rw-r--r--gdb/gdbserver/debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbserver/debug.c b/gdb/gdbserver/debug.c
index 19f11fc..a764df7 100644
--- a/gdb/gdbserver/debug.c
+++ b/gdb/gdbserver/debug.c
@@ -26,8 +26,7 @@ int remote_debug = 0;
/* Output file for debugging. Default to standard error. */
FILE *debug_file = stderr;
-/* Enable miscellaneous debugging output. The name is historical - it
- was originally used to debug LinuxThreads support. */
+/* See debug.h. */
int debug_threads;
/* Include timestamps in debugging output. */