Crasher in dwarf2-frame.c - memory reuse

Andrew Cagney ac131313@redhat.com
Mon Jun 16 21:00:00 GMT 2003


> So, reread_symbols frees the objfile, but does not clear sym_private. 
> Clearing it in reread_symbols fixes the crash, but presumably leaks memory. 
> How are we supposed to clean up the FDE list?

       fde = (struct dwarf2_fde *)
         obstack_alloc (&unit->objfile->psymbol_obstack,
                        sizeof (struct dwarf2_fde));

so won't the symbol table free, free that memory?

Andrew




More information about the Gdb mailing list