This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Destroying frame caches


Daniel Jacobowitz <drow@false.org> writes:

> 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.

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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]