From 2930265f05600c1fd1ecdf2eb0889d977079ef78 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 28 Oct 2024 13:56:02 -0400 Subject: [PATCH] gdbserver: remove unused include in gdbthread.h clangd reports gdbsupport/common-gdbthread.h as unused in gdbthread.h, which seems right, so remove it. Add it to two files that need it, but were relying on the now-removed include. Change-Id: I12916a044d0b15f346c4ad0e6527ce99a6d460e4 --- gdbserver/gdbthread.h | 1 - gdbserver/inferiors.cc | 1 + gdbserver/remote-utils.cc | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gdbserver/gdbthread.h b/gdbserver/gdbthread.h index 389bee103c0..0f81a0f68b5 100644 --- a/gdbserver/gdbthread.h +++ b/gdbserver/gdbthread.h @@ -19,7 +19,6 @@ #ifndef GDBSERVER_GDBTHREAD_H #define GDBSERVER_GDBTHREAD_H -#include "gdbsupport/common-gdbthread.h" #include "gdbsupport/function-view.h" #include "inferiors.h" diff --git a/gdbserver/inferiors.cc b/gdbserver/inferiors.cc index 5621db377fb..4245cb8fd9d 100644 --- a/gdbserver/inferiors.cc +++ b/gdbserver/inferiors.cc @@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include "gdbsupport/common-gdbthread.h" #include "gdbsupport/common-inferior.h" #include "gdbthread.h" #include "dll.h" diff --git a/gdbserver/remote-utils.cc b/gdbserver/remote-utils.cc index 5a8eb9ae52a..98c34e91220 100644 --- a/gdbserver/remote-utils.cc +++ b/gdbserver/remote-utils.cc @@ -24,6 +24,7 @@ #include "tdesc.h" #include "debug.h" #include "dll.h" +#include "gdbsupport/common-gdbthread.h" #include "gdbsupport/rsp-low.h" #include "gdbsupport/netstuff.h" #include "gdbsupport/filestuff.h" -- 2.47.3