add dummy frame destructor
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 14 May 2014 20:01:24 +0000 (14:01 -0600)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 12 Dec 2014 21:25:15 +0000 (22:25 +0100)
commit233a8fb382c88d7faa6da1cd93a7e21b77e36df4
treea4a8a2bba3dafe8a4a964b7c342465dc1b69fb6a
parentf1660027106d583c639c9f37096519944d5c20e9
add dummy frame destructor

The compiler code needed a hook into dummy frame destruction, so that
some state could be kept while the inferior call is made and then
destroyed when the inferior call finishes.

This patch adds an optional destructor to dummy frames and a new API
to access it.

gdb/ChangeLog
2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
fields.
(pop_dummy_frame): Call the destructor if it exists.
(register_dummy_frame_dtor, find_dummy_frame_dtor): New
functions.
* dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
(register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
gdb/ChangeLog
gdb/dummy-frame.c
gdb/dummy-frame.h
This page took 0.028151 seconds and 4 git commands to generate.