This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Destroying frame caches
> Date: Tue, 5 Jun 2007 09:25:47 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> On Tue, Jun 05, 2007 at 03:06:14PM +0200, Andreas Schwab wrote:
> > Daniel Jacobowitz <drow@false.org> writes:
> >
> > > On Tue, Jun 05, 2007 at 02:47:34PM +0200, Andreas Schwab wrote:
> > >> What function does gdb call to destroy a frame cache object?
> > >
> > > reinit_frame_cache destroys the whole cache; is that what you mean?
> >
> > How can you deallocate any extra memory?
>
> Extra memory normally goes on the frame obstack using
> frame_obstack_zalloc. There's no hook for target-specific cleanup.
Targets should therefore use the same obstack for any additional
memory they need.