gdb, gdbserver, gdbsupport: remove some unused gdb_vecs.h includes

Remove some includes reported as unused by clangd.  Add some to files
that actually need it.

Change-Id: I01c61c174858c1ade5cb54fd7ee1f582b17c3363
This commit is contained in:
Simon Marchi
2024-12-06 12:40:54 -05:00
parent 5e738d4914
commit c8889b9131
20 changed files with 8 additions and 12 deletions

View 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"

View 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"

View 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"

View 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

View 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;

View 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"

View 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. */

View 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>

View 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"

View 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"

View 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

View 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"

View 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"

View 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"

View 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"

View 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"

View File

@@ -21,7 +21,6 @@
#include "breakpoint.h"
#include "memrange.h"
#include "gdbsupport/gdb_vecs.h"
#include <vector>
#include <string>

View 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"

View 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). */

View 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>