aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-11-04 17:48:55 +0000
committerSimon Marchi <simon.marchi@efficios.com>2024-11-04 13:19:03 -0500
commit0b4c9b505757b477be5481f42ac3839a90491ad1 (patch)
tree55159fdfe5a3f412ba81c96e7619635754e87291 /gdb
parenta2d63ac6798d99889fdea3b955ee24f1b7ba8591 (diff)
downloadgdb-0b4c9b505757b477be5481f42ac3839a90491ad1.zip
gdb-0b4c9b505757b477be5481f42ac3839a90491ad1.tar.gz
gdb-0b4c9b505757b477be5481f42ac3839a90491ad1.tar.bz2
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ada-typeprint.c2
-rw-r--r--gdb/c-typeprint.c1
-rw-r--r--gdb/f-typeprint.c2
-rw-r--r--gdb/m2-typeprint.c2
-rw-r--r--gdb/p-typeprint.c1
-rw-r--r--gdb/typeprint.h1
6 files changed, 1 insertions, 8 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index 915f8b5..ef466a1 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 <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>
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index 62cf721..64a3808 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -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"
diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c
index 42e1cfb..36e434a 100644
--- a/gdb/f-typeprint.c
+++ b/gdb/f-typeprint.c
@@ -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"
diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c
index 4ade1ce..42583b4 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 95a7f60..f9e1d7c 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 e14d70e..fe43fc1 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;