From: Simon Marchi Date: Wed, 2 Apr 2025 16:42:35 +0000 (-0400) Subject: gdb/dwarf2: remove unused includes X-Git-Tag: binutils-2_45~987 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27c130fbdc9a6633dfbd8d208530f57d2e470709;p=thirdparty%2Fbinutils-gdb.git gdb/dwarf2: remove unused includes Remove some includes reported as unused by clangd. Change-Id: I841938c3c6254e4f0d154a1e172c4968ff326333 --- diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c index a632474dff8..7a32a279cdb 100644 --- a/gdb/dwarf2/cooked-index.c +++ b/gdb/dwarf2/cooked-index.c @@ -20,14 +20,10 @@ #include "dwarf2/cooked-index.h" #include "dwarf2/read.h" #include "dwarf2/stringify.h" -#include "dwarf2/index-cache.h" #include "event-top.h" -#include "split-name.h" #include "observable.h" #include "run-on-main-thread.h" -#include #include "gdbsupport/task-group.h" -#include #include "cli/cli-cmds.h" /* We don't want gdb to exit while it is in the process of writing to diff --git a/gdb/dwarf2/cooked-index.h b/gdb/dwarf2/cooked-index.h index c16afa04037..583fa300043 100644 --- a/gdb/dwarf2/cooked-index.h +++ b/gdb/dwarf2/cooked-index.h @@ -20,19 +20,14 @@ #ifndef GDB_DWARF2_COOKED_INDEX_H #define GDB_DWARF2_COOKED_INDEX_H -#include "dwarf2.h" #include "dwarf2/cooked-index-entry.h" -#include "dwarf2/types.h" #include "symtab.h" -#include "hashtab.h" #include "quick-symbol.h" -#include "gdbsupport/gdb_obstack.h" #include "addrmap.h" #include "dwarf2/mapped-index.h" #include "dwarf2/read.h" #include "dwarf2/parent-map.h" #include "gdbsupport/range-chain.h" -#include "complaints.h" #include "dwarf2/cooked-index-shard.h" #include "dwarf2/cooked-index-worker.h" diff --git a/gdb/dwarf2/cooked-indexer.h b/gdb/dwarf2/cooked-indexer.h index 99e9fddd9ba..904c55f955e 100644 --- a/gdb/dwarf2/cooked-indexer.h +++ b/gdb/dwarf2/cooked-indexer.h @@ -20,7 +20,7 @@ #ifndef GDB_DWARF2_COOKED_INDEXER_H #define GDB_DWARF2_COOKED_INDEXER_H -#include "dwarf2/cooked-index.h" +#include "dwarf2/cooked-index-entry.h" #include "dwarf2/parent-map.h" #include "dwarf2/types.h" #include diff --git a/gdb/dwarf2/parent-map.c b/gdb/dwarf2/parent-map.c index d029a76294a..6f290c14c43 100644 --- a/gdb/dwarf2/parent-map.c +++ b/gdb/dwarf2/parent-map.c @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "dwarf2/cooked-index.h" +#include "dwarf2/cooked-index-entry.h" #include "dwarf2/read.h" #include "dwarf2/parent-map.h"