old-cross-binutils/gdb/tui
Patrick Palka fc6b1256ee Fix a pair of screen-resizing issues in TUI
This patch fixes a pair of TUI issues related to screen resizing:

1. In tui_handle_resize_during_io(), when the TUI screen gets resized,
we fail to update GDB's idea about the height of the output window.

You can see this bug by doing:

  a. Enter TUI mode.
  b. "show height"
  c. Resize the terminal.
  d. "show height"

And observe that despite resizing the terminal, the reported height
remains unchanged.  Note that a similar issue exists in the CLI.

The fix for this is simple: call tui_update_gdb_sizes() after performing
a resize, so that the "height" variable remains consistent with the
height of TUI's output window.

2. In tui_enable(), the call to tui_update_gdb_sizes() may clobber
readline's idea of the actual screen dimensions, and a subsequent
pending resize will use bogus terminal dimensions.

You can see this bug by doing:

  a. Enter TUI mode.
  b. Exit TUI mode.
  c. Resize the terminal.
  d. Enter TUI mode.
  e. Press a key to resize the screen.

And observe that the terminal gets incorrectly resized to the wrong
dimensions.  To fix this issue, we should oppurtunistically resize the
screen in tui_enable().  That way we eliminate the possibility of a
pending resize triggering right after we call tui_update_gdb_sizes().

gdb/ChangeLog:

	* tui/tui-io.c (tui_handle_resize_during_io): Call
	tui_update_gdb_sizes() after resizing the screen.
	* tui/tui.c (tui_enable): Resize the terminal before
	calling tui_update_gdb_sizes().
2015-02-10 19:06:49 -05:00
..
ChangeLog-1998-2003
tui-command.c Speed up GDB's TUI output 2015-02-04 12:27:28 +01:00
tui-command.h Speed up GDB's TUI output 2015-02-04 12:27:28 +01:00
tui-data.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-data.h Leave more space in TUI mode for thread ID. 2015-01-16 13:24:20 +02:00
tui-disasm.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-disasm.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-file.c Speed up GDB's TUI output 2015-02-04 12:27:28 +01:00
tui-file.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-hooks.c Consolidate the custom TUI query hook with the default query hook 2015-01-09 13:27:56 -05:00
tui-hooks.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-interp.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-io.c Fix a pair of screen-resizing issues in TUI 2015-02-10 19:06:49 -05:00
tui-io.h Make sure TABs are expanded in TUI windows on MS-Windows. 2015-01-31 10:47:14 +02:00
tui-layout.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-layout.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-out.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-regs.c Make sure TABs are expanded in TUI windows on MS-Windows. 2015-01-31 10:47:14 +02:00
tui-regs.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-source.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-source.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-stack.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-stack.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-win.c Fix an erroneous commentary. 2015-01-16 18:32:42 +02:00
tui-win.h Really add a prototype for tui_rehighlight_all. 2015-01-16 19:58:04 +02:00
tui-windata.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-windata.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-wingeneral.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-wingeneral.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-winsource.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui-winsource.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tui.c Fix a pair of screen-resizing issues in TUI 2015-02-10 19:06:49 -05:00
tui.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00