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/remote-utils.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/remote-utils.c')
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 665fc66..d7da4b7 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -23,6 +23,7 @@ #include "target.h" #include "gdbthread.h" #include "tdesc.h" +#include "debug.h" #include "dll.h" #include "gdbsupport/rsp-low.h" #include "gdbsupport/netstuff.h" @@ -109,10 +110,6 @@ static int remote_is_stdio = 0; static gdb_fildes_t remote_desc = INVALID_DESCRIPTOR; static gdb_fildes_t listen_desc = INVALID_DESCRIPTOR; -/* FIXME headerize? */ -extern int using_threads; -extern int debug_threads; - #ifdef USE_WIN32API # define read(fd, buf, len) recv (fd, (char *) buf, len, 0) # define write(fd, buf, len) send (fd, (char *) buf, len, 0) |