aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-01-19 22:23:53 +0000
committerTom Tromey <tromey@redhat.com>2010-01-19 22:23:53 +0000
commit95c11dc728db8f3533f7263599b52e681f14fa54 (patch)
tree4eb76dc927c36244728930139fd877d64795d8f7 /gdb/top.c
parenta0f49112e606aaf0ce3926cfb9873265418ddaff (diff)
downloadgdb-95c11dc728db8f3533f7263599b52e681f14fa54.zip
gdb-95c11dc728db8f3533f7263599b52e681f14fa54.tar.gz
gdb-95c11dc728db8f3533f7263599b52e681f14fa54.tar.bz2
* top.c (stop_sig, float_handler, do_nothing): Remove.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 85e7b62..90e8f1e 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -184,15 +184,6 @@ int remote_debug = 0;
char *lim_at_start;
#endif
-/* Signal to catch ^Z typed while reading a command: SIGTSTP or SIGCONT. */
-
-#ifndef STOP_SIGNAL
-#ifdef SIGTSTP
-#define STOP_SIGNAL SIGTSTP
-static void stop_sig (int);
-#endif
-#endif
-
/* Hooks for alternate command interfaces. */
/* Called after most modules have been initialized, but before taking users
@@ -785,57 +776,6 @@ gdb_readline_wrapper (char *prompt)
}
-#ifdef STOP_SIGNAL
-static void
-stop_sig (int signo)
-{
-#if STOP_SIGNAL == SIGTSTP
- signal (SIGTSTP, SIG_DFL);
-#if HAVE_SIGPROCMASK
- {
- sigset_t zero;
-
- sigemptyset (&zero);
- sigprocmask (SIG_SETMASK, &zero, 0);
- }
-#elif HAVE_SIGSETMASK
- sigsetmask (0);
-#endif
- kill (getpid (), SIGTSTP);
- signal (SIGTSTP, stop_sig);
-#else
- signal (STOP_SIGNAL, stop_sig);
-#endif
- printf_unfiltered ("%s", get_prompt ());
- gdb_flush (gdb_stdout);
-
- /* Forget about any previous command -- null line now will do nothing. */
- dont_repeat ();
-}
-#endif /* STOP_SIGNAL */
-
-/* Initialize signal handlers. */
-static void
-float_handler (int signo)
-{
- /* This message is based on ANSI C, section 4.7. Note that integer
- divide by zero causes this, so "float" is a misnomer. */
- signal (SIGFPE, float_handler);
- error (_("Erroneous arithmetic operation."));
-}
-
-static void
-do_nothing (int signo)
-{
- /* Under System V the default disposition of a signal is reinstated after
- the signal is caught and delivered to an application process. On such
- systems one must restore the replacement signal handler if one wishes
- to continue handling the signal in one's program. On BSD systems this
- is not needed but it is harmless, and it simplifies the code to just do
- it unconditionally. */
- signal (signo, do_nothing);
-}
-
/* The current saved history number from operate-and-get-next.
This is -1 if not valid. */
static int operate_saved_history = -1;