Don't draw register sub windows outside the visible area
authorHannes Domani <ssbssa@yahoo.de>
Tue, 5 Jan 2021 16:29:02 +0000 (17:29 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Sun, 7 Feb 2021 18:13:45 +0000 (19:13 +0100)
commit4cf28e918accb76e8f343eee40c4955b4969f335
tree54f64416934b44a48470c9d39047658bbaee5b22
parent3537bc23d960f961d66d36919049c0cc095c8a9c
Don't draw register sub windows outside the visible area

If the regs window is not big enough to show all registers, the
registers whose values changed are always drawn, even if they are not
in the currently visible area.

So this marks the invisible register sub windows with y=0, and skips
their rerender call in check_register_values.

gdb/ChangeLog:

2021-02-07  Hannes Domani  <ssbssa@yahoo.de>

* tui/tui-regs.c (tui_data_window::display_registers_from):
Mark invisible register sub windows.
(tui_data_window::check_register_values): Ignore invisible
register sub windows.
gdb/ChangeLog
gdb/tui/tui-regs.c