]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Rename tui_suppress_output
authorTom Tromey <tom@tromey.com>
Sun, 17 Dec 2023 19:52:33 +0000 (12:52 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 7 Sep 2024 20:23:04 +0000 (14:23 -0600)
commitd3acf3d759d085df544687b39a0c2900d3117bf7
treea27f2f8f6e7814b3d1e24ebb159637412084beb6
parent8f934adf59f11dd6c187c09521f7e7d84abcefbe
Rename tui_suppress_output

This patch renames tui_suppress_output to the more descriptive
tui_batch_rendering.  This code was never really correct, and was
based on a misunderstanding of the curses API.  The updated comments
describe the intended use of this class.

This also removes the erroneous tui_win_info::no_refresh.
wnoutrefresh does not prevent any output; rather, it copies from one
curses buffer to another but (unlike woutrefresh) without then
flushing to the screen.

tui_batch_rendering now works in the correct way: calling doupdate in
the destructor of the outermost instance, thus batching all screen
output until that point.

The patch adds instantiations of tui_batch_rendering to various spots,
to make sure it is active when refreshing.
gdb/python/py-tui.c
gdb/tui/tui-data.h
gdb/tui/tui-layout.c
gdb/tui/tui-regs.c
gdb/tui/tui-win.c
gdb/tui/tui-wingeneral.c
gdb/tui/tui-wingeneral.h
gdb/tui/tui-winsource.c
gdb/tui/tui.c