public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] gdb: remove unused includes in objfiles.{c,h}
@ 2024-05-16 19:56 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2024-05-16 19:56 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

Remove some includes reported as unused by clangd.

Change-Id: I7768232c28b9b86b0a03628a1d15dede2b30c76a
---
 gdb/objfiles.c | 3 ---
 gdb/objfiles.h | 6 ------
 2 files changed, 9 deletions(-)

diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index ba88ed1bc41b..e6b0ca7f29b9 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -27,7 +27,6 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "target.h"
-#include "bcache.h"
 #include "expression.h"
 #include "parser-defs.h"
 
@@ -46,13 +45,11 @@
 #include "exec.h"
 #include "observable.h"
 #include "complaints.h"
-#include "solist.h"
 #include "gdb_bfd.h"
 #include "btrace.h"
 #include "gdbsupport/pathstuff.h"
 
 #include <algorithm>
-#include <vector>
 
 /* Externally visible variables that are owned by this module.
    See declarations in objfile.h for more info.  */
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 8b8b7182e871..dc1b8f7afe2e 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -20,21 +20,15 @@
 #if !defined (OBJFILES_H)
 #define OBJFILES_H
 
-#include "hashtab.h"
 #include "gdbsupport/gdb_obstack.h"
 #include "objfile-flags.h"
 #include "symfile.h"
 #include "progspace.h"
 #include "registry.h"
 #include "gdb_bfd.h"
-#include <atomic>
 #include <bitset>
-#include <vector>
-#include "gdbsupport/next-iterator.h"
-#include "gdbsupport/safe-iterator.h"
 #include "bcache.h"
 #include "gdbarch.h"
-#include "gdbsupport/refcounted-object.h"
 #include "jit.h"
 #include "quick-symbol.h"
 #include <forward_list>

base-commit: 3396d197b7c27ce1ffae7b77a3b87da8b9a99942
-- 
2.45.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-16 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-16 19:56 [pushed] gdb: remove unused includes in objfiles.{c,h} Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).