aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-04-07 15:39:37 -0600
committerTom Tromey <tom@tromey.com>2019-04-19 14:20:25 -0600
commitcf250e36790aaa255bb486e2122bb83c95c7669b (patch)
tree9d23da3203929ca556c5309b337243b65e77dc6c /gdb/symfile.c
parentMake copy_name return std::string (diff)
downloadbinutils-gdb-cf250e36790aaa255bb486e2122bb83c95c7669b.tar.gz
binutils-gdb-cf250e36790aaa255bb486e2122bb83c95c7669b.tar.bz2
binutils-gdb-cf250e36790aaa255bb486e2122bb83c95c7669b.zip
Make objfile::static_links an htab_up
This changes objfile::static_links to be an htab_up, so that ~objfile no longer has to explicitly destroy it. Tested by the buildbot. gdb/ChangeLog 2019-04-19 Tom Tromey <tom@tromey.com> * symfile.c (reread_symbols): Update. * objfiles.c (objfile_register_static_link) (objfile_lookup_static_link): Update (~objfile) Don't delete static_links. * objfiles.h (struct objfile) <static_links>: Now an htab_up.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index dd9c4ae9856..5736666506f 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2549,7 +2549,7 @@ reread_symbols (void)
objfile->sections = NULL;
objfile->compunit_symtabs = NULL;
objfile->template_symbols = NULL;
- objfile->static_links = NULL;
+ objfile->static_links.reset (nullptr);
/* obstack_init also initializes the obstack so it is
empty. We could use obstack_specify_allocation but