From 05fa925168007d8996d78cf832c06bf65f70c8d9 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 23 Oct 2012 06:12:04 +0000 Subject: [PATCH] gdb/ * event-top.c (sigint_token, sighup_token): Replace 'void *' with 'static struct async_signal_handler *'. (sighup_token, sigquit_token, sigstp_token): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/event-top.c | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b77946cdda5..308fa218fc7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-10-23 Yao Qi + + * event-top.c (sigint_token, sighup_token): Replace 'void *' + with 'static struct async_signal_handler *'. + (sighup_token, sigquit_token, sigstp_token): Likewise. + 2012-10-22 Ali Anwar * gdbarch.sh (function_list): Use 'pstring' when printing diff --git a/gdb/event-top.c b/gdb/event-top.c index 4f3363c63ed..1e0626a48e8 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -123,16 +123,16 @@ int input_fd; handlers mark these functions as ready to be executed and the event loop, in a later iteration, calls them. See the function invoke_async_signal_handler. */ -void *sigint_token; +static struct async_signal_handler *sigint_token; #ifdef SIGHUP -void *sighup_token; +static struct async_signal_handler *sighup_token; #endif #ifdef SIGQUIT -void *sigquit_token; +static struct async_signal_handler *sigquit_token; #endif -void *sigfpe_token; +static struct async_signal_handler *sigfpe_token; #ifdef STOP_SIGNAL -void *sigtstp_token; +static struct async_signal_handler *sigtstp_token; #endif /* Structure to save a partially entered command. This is used when -- 2.30.2