From: Simon Marchi Date: Mon, 4 Nov 2024 17:48:55 +0000 (+0000) Subject: gdb: cleanup includes in *-typeprint.[ch] X-Git-Tag: gdb-16-branchpoint~534 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b4c9b505757b477be5481f42ac3839a90491ad1;p=thirdparty%2Fbinutils-gdb.git gdb: cleanup includes in *-typeprint.[ch] Remove includes reported as unused by clangd. Include "gdb-hashtab.h" in typeprint.h for the use of "htab_up". Change-Id: I5b04ec14e71800e2d6ad622838e39b7033e168cf --- diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 915f8b54d50..ef466a1f50b 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -16,14 +16,12 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "bfd.h" #include "event-top.h" #include "gdbtypes.h" #include "value.h" #include "c-lang.h" #include "cli/cli-style.h" #include "typeprint.h" -#include "target-float.h" #include "ada-lang.h" #include diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 62cf7219a41..64a38085dcf 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -17,7 +17,6 @@ along with this program. If not, see . */ #include "event-top.h" -#include "gdbsupport/gdb_obstack.h" #include "bfd.h" #include "symtab.h" #include "gdbtypes.h" diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c index 42e1cfb871b..36e434ae5c2 100644 --- a/gdb/f-typeprint.c +++ b/gdb/f-typeprint.c @@ -21,8 +21,6 @@ along with this program. If not, see . */ #include "event-top.h" -#include "gdbsupport/gdb_obstack.h" -#include "bfd.h" #include "symtab.h" #include "gdbtypes.h" #include "expression.h" diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c index 4ade1ce7e7a..42583b4bcba 100644 --- a/gdb/m2-typeprint.c +++ b/gdb/m2-typeprint.c @@ -18,7 +18,6 @@ #include "event-top.h" #include "language.h" -#include "gdbsupport/gdb_obstack.h" #include "bfd.h" #include "symtab.h" #include "gdbtypes.h" @@ -27,7 +26,6 @@ #include "gdbcore.h" #include "m2-lang.h" #include "target.h" -#include "demangle.h" #include "c-lang.h" #include "typeprint.h" #include "cp-abi.h" diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index 95a7f6041c1..f9e1d7cb842 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -19,7 +19,6 @@ /* This file is derived from p-typeprint.c */ #include "event-top.h" -#include "gdbsupport/gdb_obstack.h" #include "bfd.h" #include "symtab.h" #include "gdbtypes.h" diff --git a/gdb/typeprint.h b/gdb/typeprint.h index e14d70efa2d..fe43fc148f4 100644 --- a/gdb/typeprint.h +++ b/gdb/typeprint.h @@ -19,6 +19,7 @@ #ifndef TYPEPRINT_H #define TYPEPRINT_H +#include "gdbsupport/gdb-hashtab.h" #include "gdbsupport/gdb_obstack.h" enum language;