diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-09-20 11:40:09 +0900 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-09-21 11:00:50 +0900 |
commit | f9d949fb7b85323e3f307884a4a3cef6ba52607b (patch) | |
tree | d0faee6739af74b56afda346383fd72665ba58c2 /gdb/gdbserver/nto-low.c | |
parent | a7773afff9035cb0e450478bcfe88a5920957e46 (diff) | |
download | gdb-f9d949fb7b85323e3f307884a4a3cef6ba52607b.zip gdb-f9d949fb7b85323e3f307884a4a3cef6ba52607b.tar.gz 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/nto-low.c')
-rw-r--r-- | gdb/gdbserver/nto-low.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c index 3c11306..d77fda5 100644 --- a/gdb/gdbserver/nto-low.c +++ b/gdb/gdbserver/nto-low.c @@ -22,6 +22,7 @@ #include "gdbthread.h" #include "nto-low.h" #include "hostio.h" +#include "debug.h" #include <limits.h> #include <fcntl.h> @@ -32,7 +33,6 @@ #include <sys/neutrino.h> -extern int using_threads; int using_threads = 1; const struct target_desc *nto_tdesc; |