]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: remove unused includes in objfiles.{c,h}
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 16 May 2024 19:54:37 +0000 (15:54 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 16 May 2024 19:54:37 +0000 (15:54 -0400)
Remove some includes reported as unused by clangd.

Change-Id: I7768232c28b9b86b0a03628a1d15dede2b30c76a

gdb/objfiles.c
gdb/objfiles.h

index ba88ed1bc41b92224b62b277870cf8d87a5f1e7a..e6b0ca7f29b93b84f0f8b471e696d07161c8e24e 100644 (file)
@@ -27,7 +27,6 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "target.h"
-#include "bcache.h"
 #include "expression.h"
 #include "parser-defs.h"
 
 #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.  */
index 8b8b7182e8716a4dc8ca9e5fcbde67b749d6fcf7..dc1b8f7afe2e822e2a3c68aded38e1938825d62f 100644 (file)
 #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>