This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Disable readline's SIGWINCH handler


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=24b73f8e74857245c0a7ea07c2a360237abcdfc0

commit 24b73f8e74857245c0a7ea07c2a360237abcdfc0
Author: Patrick Palka <patrick@parcs.ath.cx>
Date:   Thu Apr 23 19:28:32 2015 -0400

    Disable readline's SIGWINCH handler
    
    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.

Diff:
---
 gdb/ChangeLog | 6 ++++++
 gdb/top.c     | 2 ++
 gdb/utils.c   | 5 +++--
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e669e09..7d0e7e9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
 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.
 	(tui_sigwinch_handler): Still update our idea of
 	the terminal's width and height even when TUI is not active.
diff --git a/gdb/top.c b/gdb/top.c
index 647d9fb..ddf5415 100644
--- 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 ();
 
diff --git a/gdb/utils.c b/gdb/utils.c
index 70708bf..aaaf9c5 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -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."), _("\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]