mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 13:57:12 +08:00
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.
This commit is contained in:
@ -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>
|
2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
|
||||||
|
|
||||||
* tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
|
* tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
|
||||||
|
@ -1939,6 +1939,8 @@ gdb_init (char *argv0)
|
|||||||
initialize_targets (); /* Setup target_terminal macros for utils.c. */
|
initialize_targets (); /* Setup target_terminal macros for utils.c. */
|
||||||
initialize_utils (); /* Make errors and warnings possible. */
|
initialize_utils (); /* Make errors and warnings possible. */
|
||||||
|
|
||||||
|
init_page_info ();
|
||||||
|
|
||||||
/* Here is where we call all the _initialize_foo routines. */
|
/* Here is where we call all the _initialize_foo routines. */
|
||||||
initialize_all_files ();
|
initialize_all_files ();
|
||||||
|
|
||||||
|
@ -1696,6 +1696,9 @@ init_page_info (void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We handle SIGWINCH ourselves. */
|
||||||
|
rl_catch_sigwinch = 0;
|
||||||
|
|
||||||
set_screen_size ();
|
set_screen_size ();
|
||||||
set_width ();
|
set_width ();
|
||||||
}
|
}
|
||||||
@ -2712,8 +2715,6 @@ Setting this to \"unlimited\" or zero causes GDB never pause during output."),
|
|||||||
show_lines_per_page,
|
show_lines_per_page,
|
||||||
&setlist, &showlist);
|
&setlist, &showlist);
|
||||||
|
|
||||||
init_page_info ();
|
|
||||||
|
|
||||||
add_setshow_boolean_cmd ("pagination", class_support,
|
add_setshow_boolean_cmd ("pagination", class_support,
|
||||||
&pagination_enabled, _("\
|
&pagination_enabled, _("\
|
||||||
Set state of GDB output pagination."), _("\
|
Set state of GDB output pagination."), _("\
|
||||||
|
Reference in New Issue
Block a user