[pushed] gdb: remove unused includes in objfiles.{c,h}

Message ID 20240516195606.685238-1-simon.marchi@polymtl.ca
State New
Headers
Series [pushed] gdb: remove unused includes in objfiles.{c,h} |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Simon Marchi May 16, 2024, 7:56 p.m. UTC
  Remove some includes reported as unused by clangd.

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


base-commit: 3396d197b7c27ce1ffae7b77a3b87da8b9a99942
  

Patch

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>