]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdbserver: remove unused include in gdbthread.h
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 28 Oct 2024 17:56:02 +0000 (13:56 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 28 Oct 2024 17:58:52 +0000 (13:58 -0400)
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
gdbserver/inferiors.cc
gdbserver/remote-utils.cc

index 389bee103c040aa61bfacb310e1910b1e372ec48..0f81a0f68b54d3a52e733ed7d2918e4f4f45ae62 100644 (file)
@@ -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"
 
index 5621db377fb19067e1dfc8cf64b33849400a2c23..4245cb8fd9dcb29cee80fc2853d732b4c91a8e4d 100644 (file)
@@ -18,6 +18,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#include "gdbsupport/common-gdbthread.h"
 #include "gdbsupport/common-inferior.h"
 #include "gdbthread.h"
 #include "dll.h"
index 5a8eb9ae52aee180f7a80d22d5063dd359e87038..98c34e91220cb3e3cca0531dba90a50475ffc720 100644 (file)
@@ -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"