Disable readline's SIGWINCH handler
authorPatrick Palka <patrick@parcs.ath.cx>
Thu, 23 Apr 2015 23:28:32 +0000 (19:28 -0400)
committerPatrick Palka <patrick@parcs.ath.cx>
Tue, 28 Apr 2015 12:51:03 +0000 (08:51 -0400)
We no longer need it as we handle SIGWINCH ourselves.  Also move the
call to init_page_info() from initialize_utils() to the latter
function's only caller, gdb_init().

gdb/ChangeLog:

* utils.c (init_page_info): Set rl_catch_sigwinch to zero.
(initialize_utils): Move call of init_page_info() to ...
* top.c (gdb_init): ... here.

gdb/ChangeLog
gdb/top.c
gdb/utils.c

index e669e098f675fd16e2bec7f7b1e19f86230b3032..7d0e7e95636539aee8735caf3491397baccf4e94 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
+       (initialize_utils): Move call of init_page_info() to ...
+       * top.c (gdb_init): ... here.
+
 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
 
        * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
index 647d9fb920c42442981efd0f99c1c2c5ee38d775..ddf5415e09d2f11bb0a53ce162db876fbaa313ae 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1939,6 +1939,8 @@ gdb_init (char *argv0)
   initialize_targets ();    /* Setup target_terminal macros for utils.c.  */
   initialize_utils ();     /* Make errors and warnings possible.  */
 
+  init_page_info ();
+
   /* Here is where we call all the _initialize_foo routines.  */
   initialize_all_files ();
 
index 70708bfd253268c28b5e7696009c90836f389956..aaaf9c5d678153b800a7e6504c297360d5ced706 100644 (file)
@@ -1696,6 +1696,9 @@ init_page_info (void)
 #endif
     }
 
+  /* We handle SIGWINCH ourselves.  */
+  rl_catch_sigwinch = 0;
+
   set_screen_size ();
   set_width ();
 }
@@ -2712,8 +2715,6 @@ Setting this to \"unlimited\" or zero causes GDB never pause during output."),
                            show_lines_per_page,
                            &setlist, &showlist);
 
-  init_page_info ();
-
   add_setshow_boolean_cmd ("pagination", class_support,
                           &pagination_enabled, _("\
 Set state of GDB output pagination."), _("\
This page took 0.030073 seconds and 4 git commands to generate.