Remove some unnecessary includes from *-exp.y
authorTom Tromey <tom@tromey.com>
Sat, 18 Mar 2023 14:27:17 +0000 (08:27 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 20 Mar 2023 21:28:49 +0000 (15:28 -0600)
I noticed a weird comment in one of the .y files, and then ended up
removing some unnecessary #includes from these files.

Tested by rebuilding.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/ada-exp.y
gdb/c-exp.y
gdb/d-exp.y
gdb/f-exp.y
gdb/go-exp.y
gdb/m2-exp.y
gdb/p-exp.y

index 9b704968f909ea4686ef1dcce2a0b6492ca0aea3..a9c37bedff06752a165fc48f1e45b78155f7ac6a 100644 (file)
@@ -42,9 +42,6 @@
 #include "parser-defs.h"
 #include "language.h"
 #include "ada-lang.h"
-#include "bfd.h" /* Required by objfiles.h.  */
-#include "symfile.h" /* Required by objfiles.h.  */
-#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
 #include "frame.h"
 #include "block.h"
 #include "ada-exp.h"
index 00599b0da7fa57b7486bcdaa1b6121b6d3794141..9ee4115560ab9b3ea2cb3f3c56c324f2d6e9bcae 100644 (file)
@@ -43,9 +43,6 @@
 #include "language.h"
 #include "c-lang.h"
 #include "c-support.h"
-#include "bfd.h" /* Required by objfiles.h.  */
-#include "symfile.h" /* Required by objfiles.h.  */
-#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
 #include "charset.h"
 #include "block.h"
 #include "cp-support.h"
index 1c299bf7ac6480927e1cc36a577c60fae48ca8a2..3a4e7ee043410118a0a19f7342d23e2624c69f06 100644 (file)
@@ -46,9 +46,6 @@
 #include "language.h"
 #include "c-lang.h"
 #include "d-lang.h"
-#include "bfd.h" /* Required by objfiles.h.  */
-#include "symfile.h" /* Required by objfiles.h.  */
-#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
 #include "charset.h"
 #include "block.h"
 #include "type-stack.h"
index 0b4ee48ce01eb954d2b19022fd67fb441f7674c1..7fb1a9054e36112d7fc41ff9fac10850a32b3d2c 100644 (file)
@@ -48,9 +48,6 @@
 #include "parser-defs.h"
 #include "language.h"
 #include "f-lang.h"
-#include "bfd.h" /* Required by objfiles.h.  */
-#include "symfile.h" /* Required by objfiles.h.  */
-#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
 #include "block.h"
 #include <ctype.h>
 #include <algorithm>
index 6aa4c426df671f49c351d09d5abd3d87e3862694..542a06d06d6eb903524e79fa8113308e5726fad8 100644 (file)
@@ -59,9 +59,6 @@
 #include "language.h"
 #include "c-lang.h"
 #include "go-lang.h"
-#include "bfd.h" /* Required by objfiles.h.  */
-#include "symfile.h" /* Required by objfiles.h.  */
-#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
 #include "charset.h"
 #include "block.h"
 #include "expop.h"
index 6629974a73e7e2e5ee8dae4c3bc41dbb73adab1f..092a8be248d46e4699852a39c8b08fde64c4f970 100644 (file)
@@ -43,9 +43,6 @@
 #include "value.h"
 #include "parser-defs.h"
 #include "m2-lang.h"
-#include "bfd.h" /* Required by objfiles.h.  */
-#include "symfile.h" /* Required by objfiles.h.  */
-#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
 #include "block.h"
 #include "m2-exp.h"
 
index b5251b932efb35b46d27f866e8eea1d85485cf58..b086bf73a0ed540cc3428b0917783dd99dd203e8 100644 (file)
 #include "parser-defs.h"
 #include "language.h"
 #include "p-lang.h"
-#include "bfd.h" /* Required by objfiles.h.  */
-#include "symfile.h" /* Required by objfiles.h.  */
-#include "objfiles.h" /* For have_full_symbols and have_partial_symbols.  */
 #include "block.h"
-#include "completer.h"
 #include "expop.h"
 
 #define parse_type(ps) builtin_type (ps->gdbarch ())