This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Crasher in dwarf2-frame.c - memory reuse
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 16 Jun 2003 17:00:20 -0400
- Subject: Re: Crasher in dwarf2-frame.c - memory reuse
- References: <20030616134944.GA17095@nevyn.them.org>
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