]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: cleanup includes in *-typeprint.[ch]
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Nov 2024 17:48:55 +0000 (17:48 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Nov 2024 18:19:03 +0000 (13:19 -0500)
Remove includes reported as unused by clangd.

Include "gdb-hashtab.h" in typeprint.h for the use of "htab_up".

Change-Id: I5b04ec14e71800e2d6ad622838e39b7033e168cf

gdb/ada-typeprint.c
gdb/c-typeprint.c
gdb/f-typeprint.c
gdb/m2-typeprint.c
gdb/p-typeprint.c
gdb/typeprint.h

index 915f8b54d50ea70ab5e241cf619fc5405d0e7ae9..ef466a1f50be6c12209b72bd9ca239e7eddc8a54 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#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 <ctype.h>
 
index 62cf7219a415254ed7ea6295ae90079c97547b51..64a38085dcfc031449495ad0a6758d921318c590 100644 (file)
@@ -17,7 +17,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "event-top.h"
-#include "gdbsupport/gdb_obstack.h"
 #include "bfd.h"
 #include "symtab.h"
 #include "gdbtypes.h"
index 42e1cfb871bbcfbb9a3565157e017a9de75192b1..36e434ae5c282569c959af45dcfc3532bf370748 100644 (file)
@@ -21,8 +21,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "event-top.h"
-#include "gdbsupport/gdb_obstack.h"
-#include "bfd.h"
 #include "symtab.h"
 #include "gdbtypes.h"
 #include "expression.h"
index 4ade1ce7e7a9ab254a3a3cccfd2213c485fd59d6..42583b4bcba58af3b1e631f1853e561f6790aaba 100644 (file)
@@ -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"
index 95a7f6041c1d641074b4224e0977cfb257f7a7e4..f9e1d7cb842e6ded3127480ec737de835260818c 100644 (file)
@@ -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"
index e14d70efa2d7e65297b7142da77897cd103fd666..fe43fc148f49999653ae0574361edd90ee4994d1 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef TYPEPRINT_H
 #define TYPEPRINT_H
 
+#include "gdbsupport/gdb-hashtab.h"
 #include "gdbsupport/gdb_obstack.h"
 
 enum language;