aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-10 16:23:44 -0600
committerTom Tromey <tom@tromey.com>2019-01-10 07:08:10 -0700
commitbaa62830ed84d45b414ff677b7bce900a21923ce (patch)
treec6bcf23339cd0deca2a1e76d9e0682a0125fed7b /gdb/psymtab.c
parent0e8f53badb3df16f4104890395d9324a5bcf568d (diff)
downloadgdb-baa62830ed84d45b414ff677b7bce900a21923ce.zip
gdb-baa62830ed84d45b414ff677b7bce900a21923ce.tar.gz
gdb-baa62830ed84d45b414ff677b7bce900a21923ce.tar.bz2
Remove some unneeded psymtab initializations
allocate_psymtab has long cleared the new psymtab that is returned. This patch documents this behavior and then removes some redundant initializations. gdb/ChangeLog 2019-01-10 Tom Tromey <tom@tromey.com> * xcoffread.c (xcoff_end_psymtab): Remove some initializations. * psymtab.c (allocate_psymtab): Add comment. * psympriv.h (allocate_psymtab): Add comment. * dwarf2read.c (dwarf2_create_include_psymtab): Remove some initializations. * dbxread.c (dbx_end_psymtab): Remove some initializations.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index d5bd5b1..1a54ea9 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1677,6 +1677,8 @@ init_psymbol_list (struct objfile *objfile, int total_symbols)
objfile->static_psymbols.reserve (total_symbols / 10);
}
+/* See psympriv.h. */
+
struct partial_symtab *
allocate_psymtab (const char *filename, struct objfile *objfile)
{