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/infcall.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/infcall.h') diff --git a/gdb/infcall.h b/gdb/infcall.h index d038b6a..77c5101 100644 --- a/gdb/infcall.h +++ b/gdb/infcall.h @@ -20,6 +20,8 @@ #ifndef INFCALL_H #define INFCALL_H +#include "dummy-frame.h" + struct value; struct type; @@ -42,11 +44,10 @@ extern struct value *call_function_by_hand (struct value *function, int nargs, register_dummy_frame_dtor with DUMMY_DTOR and DUMMY_DTOR_DATA for the created inferior call dummy frame. */ -typedef void (call_function_by_hand_dummy_dtor_ftype) (void *data); extern struct value * call_function_by_hand_dummy (struct value *function, int nargs, struct value **args, - call_function_by_hand_dummy_dtor_ftype *dummy_dtor, + dummy_frame_dtor_ftype *dummy_dtor, void *dummy_dtor_data); #endif -- cgit v1.1