]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove unused includes from xcoffread.c
authorTom Tromey <tom@tromey.com>
Wed, 7 Jan 2026 16:40:23 +0000 (09:40 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 8 Jan 2026 13:40:34 +0000 (06:40 -0700)
I found a number of includes in xcoffread.c that aren't needed.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/xcoffread.c

index eef950e52080e0546e3032637e8c36a13da0098d..2418c2b6e9e949211d040ff792a25dd127f09fe8 100644 (file)
 #include "bfd.h"
 #include "event-top.h"
 
-#include <sys/types.h>
-#include <fcntl.h>
-#ifdef HAVE_SYS_FILE_H
-#include <sys/file.h>
-#endif
-#include <sys/stat.h>
-#include <algorithm>
-
 #include "coff/internal.h"
 #include "libcoff.h"
 #include "coff/xcoff.h"
-#include "libxcoff.h"
 #include "coff/rs6000.h"
 #include "xcoffread.h"
 
 #include "symtab.h"
 #include "gdbtypes.h"
-/* FIXME: ezannoni/2004-02-13 Verify if the include below is really needed.  */
 #include "symfile.h"
 #include "objfiles.h"
 #include "buildsym-legacy.h"
-#include "expression.h"
 #include "complaints.h"
-#include "psymtab.h"
 #include "dwarf2/sect-names.h"
 #include "dwarf2/public.h"