From 558e5469679897ee57ad6706074f55ff4952cf43 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 13 May 2015 15:55:09 +0200 Subject: dummy_frame_dtor_ftype vs. call_function_by_hand_dummy_dtor_ftype cleanup Both dummy_frame_dtor_ftype and call_function_by_hand_dummy_dtor_ftype represent the same type, there was some mistake/duplication during check-in. gdb/ChangeLog 2015-05-08 Jan Kratochvil * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor. * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment. * infcall.c (call_function_by_hand_dummy): Use proper typedef for dummy_dtor parameter. * infcall.h: Include dummy-frame.h. (call_function_by_hand_dummy_dtor_ftype): Remove. (call_function_by_hand_dummy): Use proper typedef for dummy_dtor parameter. --- gdb/dummy-frame.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/dummy-frame.h') diff --git a/gdb/dummy-frame.h b/gdb/dummy-frame.h index bdc406a..ffd3b0a 100644 --- a/gdb/dummy-frame.h +++ b/gdb/dummy-frame.h @@ -54,10 +54,12 @@ extern void dummy_frame_discard (struct frame_id dummy_id, ptid_t ptid); extern const struct frame_unwind dummy_frame_unwind; +/* Destructor for dummy_frame. DATA is supplied by registrant. */ +typedef void (dummy_frame_dtor_ftype) (void *data); + /* Call DTOR with DTOR_DATA when DUMMY_ID frame of thread PTID gets discarded. Dummy frame with DUMMY_ID must exist. There must be no other call of register_dummy_frame_dtor for that dummy frame. */ -typedef void (dummy_frame_dtor_ftype) (void *data); extern void register_dummy_frame_dtor (struct frame_id dummy_id, ptid_t ptid, dummy_frame_dtor_ftype *dtor, void *dtor_data); -- cgit v1.1