aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/debug.h
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.h
parenta7773afff9035cb0e450478bcfe88a5920957e46 (diff)
downloadfsf-binutils-gdb-f9d949fb7b85323e3f307884a4a3cef6ba52607b.zip
fsf-binutils-gdb-f9d949fb7b85323e3f307884a4a3cef6ba52607b.tar.gz
fsf-binutils-gdb-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.h')
-rw-r--r--gdb/gdbserver/debug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbserver/debug.h b/gdb/gdbserver/debug.h
index 07e94ea..c136b9c 100644
--- a/gdb/gdbserver/debug.h
+++ b/gdb/gdbserver/debug.h
@@ -28,7 +28,13 @@ extern int remote_debug;
void debug_set_output (const char *debug_file);
#endif
+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 int debug_timestamp;
void debug_flush (void);