]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb, gdbserver, gdbsupport: remove some unused gdb_vecs.h includes
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 6 Dec 2024 17:40:54 +0000 (12:40 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 6 Dec 2024 17:49:10 +0000 (12:49 -0500)
Remove some includes reported as unused by clangd.  Add some to files
that actually need it.

Change-Id: I01c61c174858c1ade5cb54fd7ee1f582b17c3363

20 files changed:
gdb/arch/arm-get-next-pcs.c
gdb/auto-load.c
gdb/breakpoint.c
gdb/charset.c
gdb/command.h
gdb/compile/compile-loc2c.c
gdb/completer.h
gdb/cp-support.h
gdb/dwarf2/dwz.c
gdb/inline-frame.c
gdb/namespace.h
gdb/record-btrace.c
gdb/record-full.c
gdb/source.c
gdb/symfile.c
gdb/symtab.h
gdb/tracepoint.h
gdbserver/inferiors.h
gdbserver/server.h
gdbsupport/filestuff.cc

index 03115cf213879e899dfc41c932e6cdb0aaa95eb6..6c1823672cdac1e5e8e67486ef8b6e95c2b3199d 100644 (file)
@@ -17,7 +17,6 @@
    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/gdb_vecs.h"
 #include "gdbsupport/common-regcache.h"
 #include "arm.h"
 #include "arm-get-next-pcs.h"
index e684d7fd896f990aa7b62625af188f9f5dd28888..513c1df4b7bf8133ed90ca6f61a436fd8bf312cf 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <ctype.h>
 #include "auto-load.h"
+#include "gdbsupport/gdb_vecs.h"
 #include "progspace.h"
 #include "gdbsupport/gdb_regex.h"
 #include "ui-out.h"
index 0a889a04e81ae7b3592434188a162c6db2e99e64..bfe4da996e1fbfe2384c5ad982f9df826cc20150 100644 (file)
@@ -21,6 +21,7 @@
 #include <ctype.h>
 #include "event-top.h"
 #include "exceptions.h"
+#include "gdbsupport/gdb_vecs.h"
 #include "gdbsupport/unordered_set.h"
 #include "symtab.h"
 #include "frame.h"
index 35e700a8caf71fffffe5b06081f08d964d2d6bce..f1f66bb29cba590006e69a4e3556428cdd71b841 100644 (file)
@@ -24,7 +24,6 @@
 #include "charset-list.h"
 #include "gdbsupport/environ.h"
 #include "arch-utils.h"
-#include "gdbsupport/gdb_vecs.h"
 #include <ctype.h>
 
 #ifdef USE_WIN32API
index 0ceaf3e2a6dcf5f2f7e145f641708c301374b3e8..675b48eeea8a521a59c461c893adadc0182d228e 100644 (file)
@@ -18,7 +18,6 @@
 #if !defined (COMMAND_H)
 #define COMMAND_H 1
 
-#include "gdbsupport/gdb_vecs.h"
 #include "gdbsupport/scoped_restore.h"
 
 struct completion_tracker;
index fbcc3d6340b264bdfb3c641a05f293839f2b87f5..42370447052f10545b94d2df877e0c90a7be110b 100644 (file)
@@ -29,7 +29,6 @@
 #include "compile.h"
 #include "block.h"
 #include "dwarf2/frame.h"
-#include "gdbsupport/gdb_vecs.h"
 #include "value.h"
 #include "gdbarch.h"
 
index 44eafc487f7c41e57465bcb4e52a75d323afdc0b..ba0ef7ab312e94e9d9868af075a8e02acc222329 100644 (file)
@@ -18,7 +18,6 @@
 #define COMPLETER_H 1
 
 #include "gdbsupport/gdb-hashtab.h"
-#include "gdbsupport/gdb_vecs.h"
 #include "command.h"
 
 /* Types of functions in struct match_list_displayer.  */
index e266f3186211930139cc65a4666ebd17512b8cea..942febffb4d10032d42dd6a1f62b1bdd4e00305f 100644 (file)
@@ -23,7 +23,6 @@
 #define CP_SUPPORT_H
 
 #include "symtab.h"
-#include "gdbsupport/gdb_vecs.h"
 #include "gdbsupport/gdb_obstack.h"
 #include "gdbsupport/array-view.h"
 #include <vector>
index c7cdba240761941855066b65dd4aaa79c44ce7c1..fb11ac6550bc6409c2fea262d5e4fb63e94893b8 100644 (file)
@@ -26,6 +26,7 @@
 #include "filenames.h"
 #include "gdb_bfd.h"
 #include "gdbcore.h"
+#include "gdbsupport/gdb_vecs.h"
 #include "gdbsupport/pathstuff.h"
 #include "gdbsupport/scoped_fd.h"
 #include "run-on-main-thread.h"
index 759c526a7c200543f7a15841a8c799eb25ab63eb..bfb89164e75767f2a0c639f566c5529373517e85 100644 (file)
@@ -22,6 +22,7 @@
 #include "addrmap.h"
 #include "block.h"
 #include "frame-unwind.h"
+#include "gdbsupport/gdb_vecs.h"
 #include "inferior.h"
 #include "gdbthread.h"
 #include "regcache.h"
index 232dcc03bd803d876e464b450419657763e5dfeb..849eb84854d1ccde2c3d284df96d87bdcf52cdd4 100644 (file)
@@ -19,7 +19,6 @@
 #ifndef NAMESPACE_H
 #define NAMESPACE_H
 
-#include "gdbsupport/gdb_vecs.h"
 #include "gdbsupport/gdb_obstack.h"
 
 /* This struct is designed to store data from using directives.  It
index bf4a368f4fe94fbabfd748bb1de7db3f28eb7878..4b4248fead7fc26c9180e2f9a4756047c92c6b03 100644 (file)
@@ -19,6 +19,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/gdb_vecs.h"
 #include "record.h"
 #include "record-btrace.h"
 #include "gdbthread.h"
index 7d7959ffe683cb300306ed22a05233d28bb506c5..6d056514e8b1622bbddcbadb6a2c0d02beb3a821 100644 (file)
@@ -20,6 +20,7 @@
 #include "exceptions.h"
 #include "extract-store-integer.h"
 #include "cli/cli-cmds.h"
+#include "gdbsupport/gdb_vecs.h"
 #include "regcache.h"
 #include "gdbthread.h"
 #include "inferior.h"
index 69480ef8dd086ebcd51353429701646111bd20ad..a225280e794631908aeceab6110421bb7bd29089 100644 (file)
@@ -17,6 +17,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "arch-utils.h"
+#include "gdbsupport/gdb_vecs.h"
 #include "symtab.h"
 #include "expression.h"
 #include "language.h"
index 28c0d46ab54cd851c7f9b62d189d185676288609..fd21d2d2c238d8e437c807f20348704e5edf8a86 100644 (file)
@@ -22,6 +22,7 @@
 #include "arch-utils.h"
 #include "cli/cli-cmds.h"
 #include "extract-store-integer.h"
+#include "gdbsupport/gdb_vecs.h"
 #include "symtab.h"
 #include "gdbcore.h"
 #include "frame.h"
index f285138378bc4abf7236b8653b77e2aaca2d5c7b..ef4d450d08e0d5060f231dbd6f5ce0dfc2fd9929 100644 (file)
@@ -25,7 +25,6 @@
 #include <string>
 #include <set>
 #include "dwarf2/call-site.h"
-#include "gdbsupport/gdb_vecs.h"
 #include "gdbtypes.h"
 #include "gdbsupport/gdb_obstack.h"
 #include "gdbsupport/gdb_regex.h"
index 5e6ea67c8d2056b031731caf46915ced48cab0a6..8b3f971740eda77e67f1e7b85651d74f49869e35 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "breakpoint.h"
 #include "memrange.h"
-#include "gdbsupport/gdb_vecs.h"
 
 #include <vector>
 #include <string>
index 5867608ba466fdcee334f5ffa8e5fcc40045a1af..2f3d42b8308171b2864de671d67f3c76d88ee332 100644 (file)
@@ -19,7 +19,6 @@
 #ifndef GDBSERVER_INFERIORS_H
 #define GDBSERVER_INFERIORS_H
 
-#include "gdbsupport/gdb_vecs.h"
 #include "gdbsupport/owning_intrusive_list.h"
 
 #include "dll.h"
index eabedb95679c9287900778253cb04cb8651854f3..e1297d41f8406dab670397f5600e4e08558f23b7 100644 (file)
@@ -95,7 +95,6 @@ extern int in_queued_stop_replies (ptid_t ptid);
 
 #include "utils.h"
 #include "debug.h"
-#include "gdbsupport/gdb_vecs.h"
 
 /* Maximum number of bytes to read/write at once.  The value here
    is chosen to fill up a packet (the headers account for the 32).  */
index 5c427e11b02aa5ea45f1c686a583bb55701a5073..9e07af28dc2db5975776763376d567c51de6376c 100644 (file)
@@ -17,7 +17,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "filestuff.h"
-#include "gdb_vecs.h"
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/types.h>