register_dummy_frame_dtor: Permit multiple dtors
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 13 May 2015 18:47:32 +0000 (20:47 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 13 May 2015 18:49:00 +0000 (20:49 +0200)
commit109896905babca2d99e13f74bc887acf14cd1ab7
treeae1303ade8fe4a52e6cdf2f9fb72e47bdfcb7736
parent5e9705017f5b257421136b8d7752b9c793335ace
register_dummy_frame_dtor: Permit multiple dtors

Later patch needs two independent destructors for the same dummy_frame.
Therefore the registrar has been extended to an arbitrary number of
destructors.

gdb/ChangeLog
2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>

* dummy-frame.c (struct dummy_frame_dtor_list): New.
(struct dummy_frame): Replace dtor and dtor_data by dtor_list.
(remove_dummy_frame): Process dtor_list.
(pop_dummy_frame): Process dtor_list.
(register_dummy_frame_dtor): Maintain dtor_list.
(find_dummy_frame_dtor): Handle dtor_list.
* dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
Update comments.
gdb/ChangeLog
gdb/dummy-frame.c
gdb/dummy-frame.h