summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqiyao <qiyao>2012-10-23 06:12:01 +0000
committerqiyao <qiyao>2012-10-23 06:12:01 +0000
commit0a6d4b0fca4b836b2d724b0f1c31dc0675f7e9c9 (patch)
tree019bb599e5f5b10c10ddf4ac9e3a2c6570bf13f6
parent48905955871307cb809e1efc8694792379c9ae51 (diff)
downloadgdb-0a6d4b0fca4b836b2d724b0f1c31dc0675f7e9c9.tar.gz
gdb/
* event-top.c (sigint_token, sighup_token): Replace 'void *' with 'static struct async_signal_handler *'. (sighup_token, sigquit_token, sigstp_token): Likewise.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/event-top.c10
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 <yao@codesourcery.com>
+
+ * 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 <ali_anwar@codesourcery.com>
* 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