* Destroying frame caches
@ 2007-06-05 12:47 Andreas Schwab
2007-06-05 12:51 ` Daniel Jacobowitz
2007-06-15 17:36 ` Mark Kettenis
0 siblings, 2 replies; 8+ messages in thread
From: Andreas Schwab @ 2007-06-05 12:47 UTC (permalink / raw)
To: gdb
What function does gdb call to destroy a frame cache object?
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."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Destroying frame caches
2007-06-05 12:47 Destroying frame caches Andreas Schwab
@ 2007-06-05 12:51 ` Daniel Jacobowitz
2007-06-05 13:06 ` Andreas Schwab
2007-06-15 17:36 ` Mark Kettenis
1 sibling, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2007-06-05 12:51 UTC (permalink / raw)
To: gdb
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?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Destroying frame caches
2007-06-05 12:51 ` Daniel Jacobowitz
@ 2007-06-05 13:06 ` Andreas Schwab
2007-06-05 13:26 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2007-06-05 13:06 UTC (permalink / raw)
To: gdb
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?
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."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Destroying frame caches
2007-06-05 13:06 ` Andreas Schwab
@ 2007-06-05 13:26 ` Daniel Jacobowitz
2007-06-05 13:30 ` Andreas Schwab
2007-06-15 17:38 ` Mark Kettenis
0 siblings, 2 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2007-06-05 13:26 UTC (permalink / raw)
To: gdb
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.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Destroying frame caches
2007-06-05 13:26 ` Daniel Jacobowitz
@ 2007-06-05 13:30 ` Andreas Schwab
2007-06-05 13:39 ` Daniel Jacobowitz
2007-06-15 17:38 ` Mark Kettenis
1 sibling, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2007-06-05 13:30 UTC (permalink / raw)
To: gdb
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."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Destroying frame caches
2007-06-05 13:26 ` Daniel Jacobowitz
2007-06-05 13:30 ` Andreas Schwab
@ 2007-06-15 17:38 ` Mark Kettenis
1 sibling, 0 replies; 8+ messages in thread
From: Mark Kettenis @ 2007-06-15 17:38 UTC (permalink / raw)
To: gdb
> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Destroying frame caches
2007-06-05 12:47 Destroying frame caches Andreas Schwab
2007-06-05 12:51 ` Daniel Jacobowitz
@ 2007-06-15 17:36 ` Mark Kettenis
1 sibling, 0 replies; 8+ messages in thread
From: Mark Kettenis @ 2007-06-15 17:36 UTC (permalink / raw)
To: schwab; +Cc: gdb
> From: Andreas Schwab <schwab@suse.de>
> Date: Tue, 05 Jun 2007 14:47:34 +0200
>
> What function does gdb call to destroy a frame cache object?
IIRC we use obstacks for frame caches, so they disappear automagically
whenever the part of the stack that contains the frame cache is freed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-06-15 17:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-05 12:47 Destroying frame caches Andreas Schwab
2007-06-05 12:51 ` Daniel Jacobowitz
2007-06-05 13:06 ` Andreas Schwab
2007-06-05 13:26 ` Daniel Jacobowitz
2007-06-05 13:30 ` Andreas Schwab
2007-06-05 13:39 ` Daniel Jacobowitz
2007-06-15 17:38 ` Mark Kettenis
2007-06-15 17:36 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox