aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-03-29 15:23:31 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-03-29 15:23:32 -0400
commit3ad830466f440959b18b93c8361f9055fc135e54 (patch)
treeee99665f01c431b1c08635f352ae8f92618accbe /gdb/xcoffread.c
parent37d59eacfeabce05990b10e242da97c0bf6e5979 (diff)
downloadgdb-3ad830466f440959b18b93c8361f9055fc135e54.zip
gdb-3ad830466f440959b18b93c8361f9055fc135e54.tar.gz
gdb-3ad830466f440959b18b93c8361f9055fc135e54.tar.bz2
gdb: remove discard_psymtab function
This function does not add much value, compared to calling the method on the psymtab_storage object directly. gdb/ChangeLog: * psympriv.h (discard_psymtab): Remove. * dbxread.c (dbx_end_psymtab): Update. * xcoffread.c (xcoff_end_psymtab): Update.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 735f8b0..dca4c46 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2050,7 +2050,7 @@ xcoff_end_psymtab (struct objfile *objfile, legacy_psymtab *pst,
/* Empty psymtabs happen as a result of header files which don't have
any symbols in them. There can be a lot of them. */
- discard_psymtab (objfile, pst);
+ objfile->partial_symtabs->discard_psymtab (pst);
/* Indicate that psymtab was thrown away. */
pst = NULL;