[pushed] gdb, gdbserver, gdbsupport: remove some unused gdb_vecs.h includes
Checks
Commit Message
From: Simon Marchi <simon.marchi@polymtl.ca>
Remove some includes reported as unused by clangd. Add some to files
that actually need it.
Change-Id: I01c61c174858c1ade5cb54fd7ee1f582b17c3363
---
gdb/arch/arm-get-next-pcs.c | 1 -
gdb/auto-load.c | 1 +
gdb/breakpoint.c | 1 +
gdb/charset.c | 1 -
gdb/command.h | 1 -
gdb/compile/compile-loc2c.c | 1 -
gdb/completer.h | 1 -
gdb/cp-support.h | 1 -
gdb/dwarf2/dwz.c | 1 +
gdb/inline-frame.c | 1 +
gdb/namespace.h | 1 -
gdb/record-btrace.c | 1 +
gdb/record-full.c | 1 +
gdb/source.c | 1 +
gdb/symfile.c | 1 +
gdb/symtab.h | 1 -
gdb/tracepoint.h | 1 -
gdbserver/inferiors.h | 1 -
gdbserver/server.h | 1 -
gdbsupport/filestuff.cc | 1 -
20 files changed, 8 insertions(+), 12 deletions(-)
base-commit: 5e738d49145b8c262734c23cbbb840475118ffa6
@@ -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"
@@ -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"
@@ -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"
@@ -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
@@ -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;
@@ -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"
@@ -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. */
@@ -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>
@@ -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"
@@ -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"
@@ -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
@@ -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"
@@ -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"
@@ -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"
@@ -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"
@@ -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"
@@ -21,7 +21,6 @@
#include "breakpoint.h"
#include "memrange.h"
-#include "gdbsupport/gdb_vecs.h"
#include <vector>
#include <string>
@@ -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"
@@ -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). */
@@ -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>