aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-18 08:27:17 -0600
committerTom Tromey <tom@tromey.com>2023-03-20 15:28:49 -0600
commit552b178f2521d552ca0153acc4b9e443ec58b44c (patch)
tree3e4440f56b14e5ed72e8d05af96d931f1ae6583c
parent145674b32572f848bd17d034e6babb1449ee1896 (diff)
downloadbinutils-552b178f2521d552ca0153acc4b9e443ec58b44c.zip
binutils-552b178f2521d552ca0153acc4b9e443ec58b44c.tar.gz
binutils-552b178f2521d552ca0153acc4b9e443ec58b44c.tar.bz2
Remove some unnecessary includes from *-exp.y
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>
-rw-r--r--gdb/ada-exp.y3
-rw-r--r--gdb/c-exp.y3
-rw-r--r--gdb/d-exp.y3
-rw-r--r--gdb/f-exp.y3
-rw-r--r--gdb/go-exp.y3
-rw-r--r--gdb/m2-exp.y3
-rw-r--r--gdb/p-exp.y4
7 files changed, 0 insertions, 22 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 9b70496..a9c37be 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -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"
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 00599b0..9ee4115 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -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"
diff --git a/gdb/d-exp.y b/gdb/d-exp.y
index 1c299bf..3a4e7ee 100644
--- a/gdb/d-exp.y
+++ b/gdb/d-exp.y
@@ -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"
diff --git a/gdb/f-exp.y b/gdb/f-exp.y
index 0b4ee48..7fb1a90 100644
--- a/gdb/f-exp.y
+++ b/gdb/f-exp.y
@@ -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>
diff --git a/gdb/go-exp.y b/gdb/go-exp.y
index 6aa4c42..542a06d 100644
--- a/gdb/go-exp.y
+++ b/gdb/go-exp.y
@@ -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"
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y
index 6629974..092a8be 100644
--- a/gdb/m2-exp.y
+++ b/gdb/m2-exp.y
@@ -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"
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index b5251b9..b086bf7 100644
--- a/gdb/p-exp.y
+++ b/gdb/p-exp.y
@@ -50,11 +50,7 @@
#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 ())