diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-10 16:23:44 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-10 07:08:10 -0700 |
commit | baa62830ed84d45b414ff677b7bce900a21923ce (patch) | |
tree | c6bcf23339cd0deca2a1e76d9e0682a0125fed7b /gdb/xcoffread.c | |
parent | 0e8f53badb3df16f4104890395d9324a5bcf568d (diff) | |
download | gdb-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/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index b8ab292..41ff583 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2103,13 +2103,6 @@ xcoff_end_psymtab (struct objfile *objfile, struct partial_symtab *pst, subpst->dependencies[0] = pst; subpst->number_of_dependencies = 1; - subpst->globals_offset = - subpst->n_global_syms = - subpst->statics_offset = - subpst->n_static_syms = 0; - - subpst->readin = 0; - subpst->compunit_symtab = NULL; subpst->read_symtab = pst->read_symtab; } |