diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d23819dd20..b224ebddf8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-03-18 Tom Tromey + + * minsyms.c (minimal_symbol_reader::install): Remove call to + obstack_blank. + 2019-03-18 Pedro Alves * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg): diff --git a/gdb/minsyms.c b/gdb/minsyms.c index fe2ad949d0..b95e9ef6e8 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -1360,8 +1360,6 @@ minimal_symbol_reader::install () we will give back the excess space. */ alloc_count = m_msym_count + m_objfile->per_bfd->minimal_symbol_count; - obstack_blank (&m_objfile->per_bfd->storage_obstack, - alloc_count * sizeof (struct minimal_symbol)); gdb::unique_xmalloc_ptr msym_holder (XNEWVEC (minimal_symbol, alloc_count)); msymbols = msym_holder.get ();