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.
#include "coff-pe-read.h"
-#include "psymtab.h"
#include "build-id.h"
/* The objfile we are currently reading. */
#include "objfiles.h"
#include "stabsread.h"
#include "demangle.h"
-#include "psympriv.h"
#include "filenames.h"
#include "probe.h"
#include "arch-utils.h"
#include "symtab.h"
#include "source.h"
#include "objfiles.h"
-#include "psymtab.h"
#include "solib.h"
#include "solist.h"
#include "gdbsupport/gdb_regex.h"
#include "elf/internal.h"
#include "elf/mips.h"
-#include "psymtab.h"
-
static void
read_alphacoff_dynamic_symtab (minimal_symbol_reader &,
struct objfile *objfile);
#include "exec.h"
#include "observable.h"
#include "complaints.h"
-#include "psymtab.h"
#include "solist.h"
#include "gdb_bfd.h"
#include "btrace.h"
#include "progspace.h"
#include "registry.h"
#include "gdb_bfd.h"
-#include "psymtab.h"
#include <atomic>
#include <bitset>
#include <vector>
#include "gdbarch.h"
#include "infcall.h"
#include "objfiles.h"
-#include "psymtab.h"
#include "rust-lang.h"
#include "typeprint.h"
#include "valprint.h"
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. */