[RFA,v2,15/23] Do not use buildsym.h in some files

Message ID 20180720042747.18473-16-tom@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey July 20, 2018, 4:27 a.m. UTC
  A few files no longer need to include buildsym.h.

gdb/ChangeLog
2018-07-19  Tom Tromey  <tom@tromey.com>

	* arch-utils.c: Do not include buildsym.h.
	* mipsread.c: Do not include buildsym.h.
	* machoread.c: Do not include buildsym.h.
	* elfread.c: Do not include buildsym.h.
---
 gdb/ChangeLog    | 7 +++++++
 gdb/arch-utils.c | 1 -
 gdb/elfread.c    | 1 -
 gdb/machoread.c  | 1 -
 gdb/mipsread.c   | 1 -
 5 files changed, 7 insertions(+), 4 deletions(-)
  

Patch

diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index a65f01f8336..6b40cb91607 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -20,7 +20,6 @@ 
 #include "defs.h"
 
 #include "arch-utils.h"
-#include "buildsym.h"
 #include "gdbcmd.h"
 #include "inferior.h"		/* enum CALL_DUMMY_LOCATION et al.  */
 #include "infrun.h"
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 10daef05369..71dcb237c32 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -28,7 +28,6 @@ 
 #include "symtab.h"
 #include "symfile.h"
 #include "objfiles.h"
-#include "buildsym.h"
 #include "stabsread.h"
 #include "gdb-stabs.h"
 #include "complaints.h"
diff --git a/gdb/machoread.c b/gdb/machoread.c
index 07e1cdaf4f8..0cbd209893e 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -24,7 +24,6 @@ 
 #include "bfd.h"
 #include "symfile.h"
 #include "objfiles.h"
-#include "buildsym.h"
 #include "gdbcmd.h"
 #include "gdbcore.h"
 #include "mach-o.h"
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index 52130dab200..cbfa9cc03c9 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -27,7 +27,6 @@ 
 #include "bfd.h"
 #include "symtab.h"
 #include "objfiles.h"
-#include "buildsym.h"
 #include "stabsread.h"
 
 #include "coff/sym.h"