projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminate STOP_SIGNAL, use SIGTSTP directly
[deliverable/binutils-gdb.git]
/
gdb
/
event-top.c
diff --git
a/gdb/event-top.c
b/gdb/event-top.c
index 43e2a27163eb92e4c3d2ea5889e3ece517450036..73771894c9a7afaee400f01c6fd14831ec886b49 100644
(file)
--- a/
gdb/event-top.c
+++ b/
gdb/event-top.c
@@
-68,8
+68,8
@@
static void async_do_nothing (gdb_client_data);
static void async_disconnect (gdb_client_data);
#endif
static void async_float_handler (gdb_client_data);
static void async_disconnect (gdb_client_data);
#endif
static void async_float_handler (gdb_client_data);
-#ifdef S
TOP_SIGNAL
-static void async_s
top_sig
(gdb_client_data);
+#ifdef S
IGTSTP
+static void async_s
igtstp_handler
(gdb_client_data);
#endif
static void async_sigterm_handler (gdb_client_data arg);
#endif
static void async_sigterm_handler (gdb_client_data arg);
@@
-111,7
+111,7
@@
static struct async_signal_handler *sighup_token;
static struct async_signal_handler *sigquit_token;
#endif
static struct async_signal_handler *sigfpe_token;
static struct async_signal_handler *sigquit_token;
#endif
static struct async_signal_handler *sigfpe_token;
-#ifdef S
TOP_SIGNAL
+#ifdef S
IGTSTP
static struct async_signal_handler *sigtstp_token;
#endif
static struct async_signal_handler *async_sigterm_token;
static struct async_signal_handler *sigtstp_token;
#endif
static struct async_signal_handler *async_sigterm_token;
@@
-912,9
+912,9
@@
async_init_signals (void)
sigfpe_token =
create_async_signal_handler (async_float_handler, NULL);
sigfpe_token =
create_async_signal_handler (async_float_handler, NULL);
-#ifdef S
TOP_SIGNAL
+#ifdef S
IGTSTP
sigtstp_token =
sigtstp_token =
- create_async_signal_handler (async_s
top_sig
, NULL);
+ create_async_signal_handler (async_s
igtstp_handler
, NULL);
#endif
}
#endif
}
@@
-1112,20
+1112,19
@@
async_disconnect (gdb_client_data arg)
}
#endif
}
#endif
-#ifdef S
TOP_SIGNAL
+#ifdef S
IGTSTP
void
void
-handle_s
top_sig
(int sig)
+handle_s
igtstp
(int sig)
{
mark_async_signal_handler (sigtstp_token);
{
mark_async_signal_handler (sigtstp_token);
- signal (sig, handle_s
top_sig
);
+ signal (sig, handle_s
igtstp
);
}
static void
}
static void
-async_s
top_sig
(gdb_client_data arg)
+async_s
igtstp_handler
(gdb_client_data arg)
{
char *prompt = get_prompt ();
{
char *prompt = get_prompt ();
-#if STOP_SIGNAL == SIGTSTP
signal (SIGTSTP, SIG_DFL);
#if HAVE_SIGPROCMASK
{
signal (SIGTSTP, SIG_DFL);
#if HAVE_SIGPROCMASK
{
@@
-1138,10
+1137,7
@@
async_stop_sig (gdb_client_data arg)
sigsetmask (0);
#endif
raise (SIGTSTP);
sigsetmask (0);
#endif
raise (SIGTSTP);
- signal (SIGTSTP, handle_stop_sig);
-#else
- signal (STOP_SIGNAL, handle_stop_sig);
-#endif
+ signal (SIGTSTP, handle_sigtstp);
printf_unfiltered ("%s", prompt);
gdb_flush (gdb_stdout);
printf_unfiltered ("%s", prompt);
gdb_flush (gdb_stdout);
@@
-1149,7
+1145,7
@@
async_stop_sig (gdb_client_data arg)
nothing. */
dont_repeat ();
}
nothing. */
dont_repeat ();
}
-#endif /* S
TOP_SIGNAL
*/
+#endif /* S
IGTSTP
*/
/* Tell the event loop what to do if SIGFPE is received.
See event-signal.c. */
/* Tell the event loop what to do if SIGFPE is received.
See event-signal.c. */
This page took
0.025665 seconds
and
4
git commands to generate.