gdb: remove unused imports in solib*.[ch]
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 28 Sep 2023 17:47:45 +0000 (13:47 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 29 Sep 2023 01:18:12 +0000 (21:18 -0400)
I'm starting to work on these files, I thought it would be a good time
to remove unused imports.  These were identified by
include-what-you-use.  Tested by rebuilding.

Change-Id: I3eaf3fa0ea3506c7ecfbc8ecff5031433b1dadb8
Reviewed-By: John Baldwin <jhb@FreeBSD.org>
gdb/solib-aix.c
gdb/solib-darwin.c
gdb/solib-darwin.h
gdb/solib-dsbt.c
gdb/solib-dsbt.h
gdb/solib-frv.c
gdb/solib-svr4.c
gdb/solib.c

index 93aa6c4e0407c9dbab5ec889da01fd7c645dc4d6..fd6b1e7a4543234fec4fd058330b02caeef2bd1c 100644 (file)
 #include "solist.h"
 #include "inferior.h"
 #include "gdb_bfd.h"
-#include "gdbcore.h"
 #include "objfiles.h"
 #include "symtab.h"
 #include "xcoffread.h"
 #include "observable.h"
-#include "gdbcmd.h"
-#include "gdbsupport/scope-exit.h"
 
 /* Our private data in struct so_list.  */
 
index 1f52dd463523a210f11bafd526c7aa7bfb9ce499..1dacc7ba6a50d96454a4c79b1d1af38f2f3a4102 100644 (file)
 
 #include "defs.h"
 
-#include "symtab.h"
 #include "bfd.h"
-#include "symfile.h"
 #include "objfiles.h"
 #include "gdbcore.h"
 #include "target.h"
 #include "inferior.h"
 #include "regcache.h"
-#include "gdbthread.h"
 #include "gdb_bfd.h"
 
 #include "solist.h"
-#include "solib.h"
-#include "solib-svr4.h"
 #include "solib-darwin.h"
 
-#include "bfd-target.h"
-#include "elf-bfd.h"
-#include "exec.h"
-#include "auxv.h"
 #include "mach-o.h"
 #include "mach-o/external.h"
 
index 6cb05e2fcfdae6bd5c759b1ef3704c5523dfc909..fb3e8abb20646be1d8d9d351c003bee23e9be157 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef SOLIB_DARWIN_H
 #define SOLIB_DARWIN_H
 
-struct objfile;
 struct target_so_ops;
 
 extern const struct target_so_ops darwin_so_ops;
index b18c4a3e82a1cb2510809cd86586b898a6eed33a..e0aa7f13c032259ea53575e48129adb88a3b057f 100644 (file)
 #include "solist.h"
 #include "objfiles.h"
 #include "symtab.h"
-#include "language.h"
 #include "command.h"
-#include "gdbcmd.h"
-#include "elf-bfd.h"
 #include "gdb_bfd.h"
 #include "solib-dsbt.h"
+#include "elf/common.h"
+#include "cli/cli-cmds.h"
 
 #define GOT_MODULE_OFFSET 4
 
index 59964a67fdb3c5e5639a95e12c5eab476f35cc8e..2b8161e8c5a7430736bf33a30bed25ae31f03c4b 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef SOLIB_DSBT_H
 #define SOLIB_DSBT_H
 
-struct objfile;
 struct target_so_ops;
 
 extern const struct target_so_ops dsbt_so_ops;
index 8b0e3a6e0b053c75b390d95f3494bbaa835d8765..152168c6edc7ee58b2b95d8a421a28a447d3cb35 100644 (file)
 
 
 #include "defs.h"
-#include "inferior.h"
 #include "gdbcore.h"
 #include "solib.h"
 #include "solist.h"
 #include "frv-tdep.h"
 #include "objfiles.h"
 #include "symtab.h"
-#include "language.h"
-#include "command.h"
-#include "gdbcmd.h"
 #include "elf/frv.h"
 #include "gdb_bfd.h"
 
index f5fdbc742e7ee8e8f0261bf6bba99f19d05210ab..521e08c3c938c63fee6c51a552dbc96f999e57e6 100644 (file)
@@ -32,7 +32,6 @@
 #include "inferior.h"
 #include "infrun.h"
 #include "regcache.h"
-#include "gdbthread.h"
 #include "observable.h"
 
 #include "solist.h"
index 771954e51c8fbdf64ad2a7faccbbf1187e72640d..e2636f06783c62e498c7787a2ecb19736f25f233 100644 (file)
@@ -19,7 +19,6 @@
 
 #include "defs.h"
 
-#include <sys/types.h>
 #include <fcntl.h>
 #include "symtab.h"
 #include "bfd.h"
 #include "command.h"
 #include "target.h"
 #include "frame.h"
-#include "gdbsupport/gdb_regex.h"
 #include "inferior.h"
 #include "gdbsupport/environ.h"
-#include "language.h"
-#include "gdbcmd.h"
-#include "completer.h"
+#include "cli/cli-cmds.h"
 #include "elf/external.h"
 #include "elf/common.h"
 #include "filenames.h"
@@ -43,7 +39,6 @@
 #include "solist.h"
 #include "observable.h"
 #include "readline/tilde.h"
-#include "remote.h"
 #include "solib.h"
 #include "interps.h"
 #include "filesystem.h"
@@ -53,7 +48,6 @@
 #include "debuginfod-support.h"
 #include "source.h"
 #include "cli/cli-style.h"
-#include "solib-target.h"
 
 /* See solib.h.  */