* event-top.c (sigwinch_token, handle_sigwinch): Remove.
authorTom Tromey <tromey@redhat.com>
Wed, 22 Aug 2012 17:31:45 +0000 (17:31 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 22 Aug 2012 17:31:45 +0000 (17:31 +0000)
(async_init_signals): Update.
* utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
(SIGWINCH_HANDLER_BODY): Remove.
gdb/doc
* gdbint.texinfo (Host Definition): Remove documentation for
SIGWINCH_HANDLER and SIGWINCH_HANDLER_BODY.

gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdbint.texinfo
gdb/event-top.c
gdb/utils.c

index b0520e11f25d5d290fd2089336e340b623693598..97128a0f200a41513e0e1ee5e164c4313a2f9e88 100644 (file)
@@ -1,3 +1,10 @@
+2012-08-22  Tom Tromey  <tromey@redhat.com>
+
+       * event-top.c (sigwinch_token, handle_sigwinch): Remove.
+       (async_init_signals): Update.
+       * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
+       (SIGWINCH_HANDLER_BODY): Remove.
+
 2012-08-22  Tom Tromey  <tromey@redhat.com>
 
        * jit.c (jit_object_close_impl): Don't malloc the objfile
index 408ecb31e0248dc638107cfe24348500a13615da..f2f02e35256e7785b37fe2a8bb53c3bb657646b3 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-22  Tom Tromey  <tromey@redhat.com>
+
+       * gdbint.texinfo (Host Definition): Remove documentation for
+       SIGWINCH_HANDLER and SIGWINCH_HANDLER_BODY.
+
 2012-08-17  Keith Seitz  <keiths@redhat.com>
 
        PR c++/13356
index c4c1cc9fffe7da9a5a662cdb764adc39eaa2924f..07493194fdcc1c5d1368d0663b14ed3a2bc2b9a1 100644 (file)
@@ -2739,14 +2739,6 @@ are:
 The default name of @value{GDBN}'s initialization file (normally
 @file{.gdbinit}).
 
-@item SIGWINCH_HANDLER
-If your host defines @code{SIGWINCH}, you can define this to be the name
-of a function to be called if @code{SIGWINCH} is received.
-
-@item SIGWINCH_HANDLER_BODY
-Define this to expand into code that will define the function named by
-the expansion of @code{SIGWINCH_HANDLER}.
-
 @item CRLF_SOURCE_FILES
 @cindex DOS text files
 Define this if host files use @code{\r\n} rather than @code{\n} as a
index 52e78523cf44f5308018ccbb351699419060bbe1..b4a67908595128d75dae73118e08948ac6b004c9 100644 (file)
@@ -58,9 +58,6 @@ static void handle_sigquit (int sig);
 static void handle_sighup (int sig);
 #endif
 static void handle_sigfpe (int sig);
-#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
-static void handle_sigwinch (int sig);
-#endif
 
 /* Functions to be invoked by the event loop in response to
    signals.  */
@@ -134,9 +131,6 @@ void *sighup_token;
 void *sigquit_token;
 #endif
 void *sigfpe_token;
-#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
-void *sigwinch_token;
-#endif
 #ifdef STOP_SIGNAL
 void *sigtstp_token;
 #endif
@@ -769,11 +763,6 @@ async_init_signals (void)
   sigfpe_token =
     create_async_signal_handler (async_float_handler, NULL);
 
-#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
-  signal (SIGWINCH, handle_sigwinch);
-  sigwinch_token =
-    create_async_signal_handler (SIGWINCH_HANDLER, NULL);
-#endif
 #ifdef STOP_SIGNAL
   sigtstp_token =
     create_async_signal_handler (async_stop_sig, NULL);
@@ -950,17 +939,6 @@ async_float_handler (gdb_client_data arg)
      divide by zero causes this, so "float" is a misnomer.  */
   error (_("Erroneous arithmetic operation."));
 }
-
-/* Tell the event loop what to do if SIGWINCH is received.
-   See event-signal.c.  */
-#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
-static void
-handle_sigwinch (int sig)
-{
-  mark_async_signal_handler_wrapper (sigwinch_token);
-  signal (sig, handle_sigwinch);
-}
-#endif
 \f
 
 /* Called by do_setshow_command.  */
index 607d7bcef3800d85d43e66a4cef3114e4ebc9c2b..b9e76ab76e0857ee0277807c1b7ccd8223f70a03 100644 (file)
@@ -1714,11 +1714,6 @@ init_page_info (void)
          lines_per_page = UINT_MAX;
        }
 
-      /* FIXME: Get rid of this junk.  */
-#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
-      SIGWINCH_HANDLER (SIGWINCH);
-#endif
-
       /* If the output is not a terminal, don't paginate it.  */
       if (!ui_file_isatty (gdb_stdout))
        lines_per_page = UINT_MAX;
@@ -2743,11 +2738,6 @@ When set, debugging messages will be marked with seconds and microseconds."),
                           &setdebuglist, &showdebuglist);
 }
 
-/* Machine specific function to handle SIGWINCH signal.  */
-
-#ifdef  SIGWINCH_HANDLER_BODY
-SIGWINCH_HANDLER_BODY
-#endif
 /* Print routines to handle variable size regs, etc.  */
 /* Temporary storage using circular buffer.  */
 #define NUMCELLS 16
This page took 0.043087 seconds and 4 git commands to generate.