mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-17 16:09:47 +00:00
* event-top.c (async_do_nothing, async_disconnect)
(async_stop_sig, async_float_handler): Remove duplicated prototypes. (handle_sighup): Guard prototype with SIGHUP. (async_do_nothing): Guard function and prototype with SIGQUIT || SIGHUP. (async_disconnect): Guard prototype with SIGHUP. (async_stop_sig): Guard prototype with STOP_SIGNAL.
This commit is contained in:
parent
4e91d01c68
commit
0f0b8dcdc3
@ -1,3 +1,14 @@
|
|||||||
|
2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* event-top.c (async_do_nothing, async_disconnect)
|
||||||
|
(async_stop_sig, async_float_handler): Remove duplicated
|
||||||
|
prototypes.
|
||||||
|
(handle_sighup): Guard prototype with SIGHUP.
|
||||||
|
(async_do_nothing): Guard function and prototype with
|
||||||
|
SIGQUIT || SIGHUP.
|
||||||
|
(async_disconnect): Guard prototype with SIGHUP.
|
||||||
|
(async_stop_sig): Guard prototype with STOP_SIGNAL.
|
||||||
|
|
||||||
2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
|
2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* maint.c (maintenance_dump_me): Remove unnecessary prototype.
|
* maint.c (maintenance_dump_me): Remove unnecessary prototype.
|
||||||
|
@ -49,16 +49,14 @@ static void command_line_handler_continuation (struct continuation_arg *arg);
|
|||||||
static void change_line_handler (void);
|
static void change_line_handler (void);
|
||||||
static void change_annotation_level (void);
|
static void change_annotation_level (void);
|
||||||
static void command_handler (char *command);
|
static void command_handler (char *command);
|
||||||
static void async_do_nothing (gdb_client_data arg);
|
|
||||||
static void async_disconnect (gdb_client_data arg);
|
|
||||||
static void async_stop_sig (gdb_client_data arg);
|
|
||||||
static void async_float_handler (gdb_client_data arg);
|
|
||||||
|
|
||||||
/* Signal handlers. */
|
/* Signal handlers. */
|
||||||
#ifdef SIGQUIT
|
#ifdef SIGQUIT
|
||||||
static void handle_sigquit (int sig);
|
static void handle_sigquit (int sig);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SIGHUP
|
||||||
static void handle_sighup (int sig);
|
static void handle_sighup (int sig);
|
||||||
|
#endif
|
||||||
static void handle_sigfpe (int sig);
|
static void handle_sigfpe (int sig);
|
||||||
#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
|
#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
|
||||||
static void handle_sigwinch (int sig);
|
static void handle_sigwinch (int sig);
|
||||||
@ -66,10 +64,16 @@ static void handle_sigwinch (int sig);
|
|||||||
|
|
||||||
/* Functions to be invoked by the event loop in response to
|
/* Functions to be invoked by the event loop in response to
|
||||||
signals. */
|
signals. */
|
||||||
|
#if defined (SIGQUIT) || defined (SIGHUP)
|
||||||
static void async_do_nothing (gdb_client_data);
|
static void async_do_nothing (gdb_client_data);
|
||||||
|
#endif
|
||||||
|
#ifdef SIGHUP
|
||||||
static void async_disconnect (gdb_client_data);
|
static void async_disconnect (gdb_client_data);
|
||||||
|
#endif
|
||||||
static void async_float_handler (gdb_client_data);
|
static void async_float_handler (gdb_client_data);
|
||||||
|
#ifdef STOP_SIGNAL
|
||||||
static void async_stop_sig (gdb_client_data);
|
static void async_stop_sig (gdb_client_data);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Readline offers an alternate interface, via callback
|
/* Readline offers an alternate interface, via callback
|
||||||
functions. These are all included in the file callback.c in the
|
functions. These are all included in the file callback.c in the
|
||||||
@ -993,12 +997,15 @@ handle_sigquit (int sig)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Called by the event loop in response to a SIGQUIT. */
|
#if defined (SIGQUIT) || defined (SIGHUP)
|
||||||
|
/* Called by the event loop in response to a SIGQUIT or an
|
||||||
|
ignored SIGHUP. */
|
||||||
static void
|
static void
|
||||||
async_do_nothing (gdb_client_data arg)
|
async_do_nothing (gdb_client_data arg)
|
||||||
{
|
{
|
||||||
/* Empty function body. */
|
/* Empty function body. */
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef SIGHUP
|
#ifdef SIGHUP
|
||||||
/* Tell the event loop what to do if SIGHUP is received.
|
/* Tell the event loop what to do if SIGHUP is received.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user