From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25862 invoked by alias); 5 Jun 2007 13:30:17 -0000 Received: (qmail 25800 invoked by uid 22791); 5 Jun 2007 13:30:15 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Jun 2007 13:30:13 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 916F821C48 for ; Tue, 5 Jun 2007 15:30:10 +0200 (CEST) From: Andreas Schwab To: gdb@sourceware.org Subject: Re: Destroying frame caches References: <20070605125051.GA9024@caradoc.them.org> <20070605132547.GA10486@caradoc.them.org> X-Yow: ALFRED JARRY! Say something about th' DEATH of DISCO!! Date: Tue, 05 Jun 2007 13:30:00 -0000 In-Reply-To: <20070605132547.GA10486@caradoc.them.org> (Daniel Jacobowitz's message of "Tue\, 5 Jun 2007 09\:25\:47 -0400") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/msg00045.txt.bz2 Daniel Jacobowitz writes: > 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. This is not possible. There is no way to tell libunwind not to use malloc. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."