Remove most includes of psymtab.h
authorTom Tromey <tromey@adacore.com>
Tue, 1 Aug 2023 15:43:54 +0000 (09:43 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 18 Aug 2023 16:08:22 +0000 (10:08 -0600)
I found that most spots including psymtab.h do not need it.  This
patch removes these includes, and also one unnecessary include of
psympriv.h.

gdb/coffread.c
gdb/elfread.c
gdb/mi/mi-cmd-file.c
gdb/mipsread.c
gdb/objfiles.c
gdb/objfiles.h
gdb/rust-lang.c
gdb/stabsread.h

index 6a995ae2241ff42209f17141f68ab4533a1ecfba..13610998ad74a47513f288e1e349edfbd734052e 100644 (file)
@@ -40,7 +40,6 @@
 
 #include "coff-pe-read.h"
 
-#include "psymtab.h"
 #include "build-id.h"
 
 /* The objfile we are currently reading.  */
index 349a8b75bccb8f0c4e979495bc2a17a1e4ee3862..862beb9e6c061327da5ddf557e5e6de356a27589 100644 (file)
@@ -30,7 +30,6 @@
 #include "objfiles.h"
 #include "stabsread.h"
 #include "demangle.h"
-#include "psympriv.h"
 #include "filenames.h"
 #include "probe.h"
 #include "arch-utils.h"
index 0883cb6f978f8913f949a4b5b2b99399742613e4..688bf493f1955f9982d5f27cbbee1e00837ca150 100644 (file)
@@ -25,7 +25,6 @@
 #include "symtab.h"
 #include "source.h"
 #include "objfiles.h"
-#include "psymtab.h"
 #include "solib.h"
 #include "solist.h"
 #include "gdbsupport/gdb_regex.h"
index efff2841974edd1c429b85596a0d4d36a311177f..447684154af6e45aee08d465738300ec21cfce0f 100644 (file)
@@ -39,8 +39,6 @@
 #include "elf/internal.h"
 #include "elf/mips.h"
 
-#include "psymtab.h"
-
 static void
 read_alphacoff_dynamic_symtab (minimal_symbol_reader &,
                               struct objfile *objfile);
index 5ba5f0a616d25f6eca2690955de86831f21a5254..222fa89ca97f862c6c25b99e282e797110399713 100644 (file)
@@ -47,7 +47,6 @@
 #include "exec.h"
 #include "observable.h"
 #include "complaints.h"
-#include "psymtab.h"
 #include "solist.h"
 #include "gdb_bfd.h"
 #include "btrace.h"
index 189856f0a516ab6215fd847809f1c7a21f074ca3..91dda1c9f4c28386f349bd1f8114a073c51c217d 100644 (file)
@@ -27,7 +27,6 @@
 #include "progspace.h"
 #include "registry.h"
 #include "gdb_bfd.h"
-#include "psymtab.h"
 #include <atomic>
 #include <bitset>
 #include <vector>
index a060720fd767f4b24a4409b65f8a7df82d13b296..5eb33d0d3b73f6e3d323c4580134edf27a4f7c3f 100644 (file)
@@ -29,7 +29,6 @@
 #include "gdbarch.h"
 #include "infcall.h"
 #include "objfiles.h"
-#include "psymtab.h"
 #include "rust-lang.h"
 #include "typeprint.h"
 #include "valprint.h"
index 27ba176f63f10cc7cf3f3b1f86f56b36318e590b..18a0c59332ed8edd699c97e4aecdb172c5771019 100644 (file)
@@ -168,6 +168,8 @@ extern void end_stabs (void);
 
 extern void finish_global_stabs (struct objfile *objfile);
 \f
+class psymtab_storage;
+
 /* Functions exported by dbxread.c.  These are not in stabsread.c because
    they are only used by some stabs readers.  */