From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23041 invoked by alias); 5 Jun 2007 13:26:30 -0000 Received: (qmail 23030 invoked by uid 22791); 5 Jun 2007 13:26:29 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Jun 2007 13:26:28 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 0035A982E4 for ; Tue, 5 Jun 2007 13:26:26 +0000 (GMT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by nan.false.org (Postfix) with ESMTP id D9223982CE for ; Tue, 5 Jun 2007 13:26:25 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1HvZ2h-0002m5-Gh for gdb@sourceware.org; Tue, 05 Jun 2007 09:25:47 -0400 Date: Tue, 05 Jun 2007 13:26:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: Destroying frame caches Message-ID: <20070605132547.GA10486@caradoc.them.org> Mail-Followup-To: gdb@sourceware.org References: <20070605125051.GA9024@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes 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/msg00044.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery