diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-05-14 14:01:24 -0600 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-12-12 22:25:15 +0100 |
commit | 233a8fb382c88d7faa6da1cd93a7e21b77e36df4 (patch) | |
tree | a4a8a2bba3dafe8a4a964b7c342465dc1b69fb6a /gdb/arch-utils.c | |
parent | f1660027106d583c639c9f37096519944d5c20e9 (diff) | |
download | gdb-233a8fb382c88d7faa6da1cd93a7e21b77e36df4.zip gdb-233a8fb382c88d7faa6da1cd93a7e21b77e36df4.tar.gz gdb-233a8fb382c88d7faa6da1cd93a7e21b77e36df4.tar.bz2 |
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.
Diffstat (limited to 'gdb/arch-utils.c')
0 files changed, 0 insertions, 0 deletions