From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11224 invoked by alias); 15 Jun 2007 17:38:21 -0000 Received: (qmail 11215 invoked by uid 22791); 15 Jun 2007 17:38:21 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Jun 2007 17:38:16 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.0/8.14.0) with ESMTP id l5FHcCPW009700 for ; Fri, 15 Jun 2007 19:38:12 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.0/8.14.0/Submit) id l5FHcCsq019111; Fri, 15 Jun 2007 19:38:12 +0200 (CEST) Date: Fri, 15 Jun 2007 17:38:00 -0000 Message-Id: <200706151738.l5FHcCsq019111@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: gdb@sourceware.org In-reply-to: <20070605132547.GA10486@caradoc.them.org> (message from Daniel Jacobowitz on Tue, 5 Jun 2007 09:25:47 -0400) Subject: Re: Destroying frame caches References: <20070605125051.GA9024@caradoc.them.org> <20070605132547.GA10486@caradoc.them.org> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00132.txt.bz2 > Date: Tue, 5 Jun 2007 09:25:47 -0400 > From: Daniel Jacobowitz > > On Tue, Jun 05, 2007 at 03:06:14PM +0200, Andreas Schwab wrote: > > Daniel Jacobowitz 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.