This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Crasher in dwarf2-frame.c - memory reuse


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]