aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-08-01 09:43:54 -0600
committerTom Tromey <tromey@adacore.com>2023-08-18 10:08:22 -0600
commitcbd44c311f3d9d03fa7caf528c44b25eaac399a6 (patch)
treef2062c099615631d2da36ce34b2c1a9b2a0c57a7
parent069a1561b76532964b1dcc3bdd8f745e927358d6 (diff)
downloadgdb-cbd44c311f3d9d03fa7caf528c44b25eaac399a6.zip
gdb-cbd44c311f3d9d03fa7caf528c44b25eaac399a6.tar.gz
gdb-cbd44c311f3d9d03fa7caf528c44b25eaac399a6.tar.bz2
Remove most includes of psymtab.h
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.
-rw-r--r--gdb/coffread.c1
-rw-r--r--gdb/elfread.c1
-rw-r--r--gdb/mi/mi-cmd-file.c1
-rw-r--r--gdb/mipsread.c2
-rw-r--r--gdb/objfiles.c1
-rw-r--r--gdb/objfiles.h1
-rw-r--r--gdb/rust-lang.c1
-rw-r--r--gdb/stabsread.h2
8 files changed, 2 insertions, 8 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 6a995ae..1361099 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -40,7 +40,6 @@
#include "coff-pe-read.h"
-#include "psymtab.h"
#include "build-id.h"
/* The objfile we are currently reading. */
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 349a8b7..862beb9 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -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"
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c
index 0883cb6..688bf49 100644
--- a/gdb/mi/mi-cmd-file.c
+++ b/gdb/mi/mi-cmd-file.c
@@ -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"
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index efff284..4476841 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -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);
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 5ba5f0a..222fa89 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -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"
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 189856f..91dda1c 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -27,7 +27,6 @@
#include "progspace.h"
#include "registry.h"
#include "gdb_bfd.h"
-#include "psymtab.h"
#include <atomic>
#include <bitset>
#include <vector>
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index a060720..5eb33d0 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -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"
diff --git a/gdb/stabsread.h b/gdb/stabsread.h
index 27ba176..18a0c59 100644
--- a/gdb/stabsread.h
+++ b/gdb/stabsread.h
@@ -168,6 +168,8 @@ extern void end_stabs (void);
extern void finish_global_stabs (struct objfile *objfile);
+class psymtab_storage;
+
/* Functions exported by dbxread.c. These are not in stabsread.c because
they are only used by some stabs readers. */