]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove the TUI register window rerender overload
authorTom Tromey <tom@tromey.com>
Sun, 17 Dec 2023 17:28:30 +0000 (10:28 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 8 Feb 2024 19:15:51 +0000 (12:15 -0700)
commit1ad87082ead2a147cf1cde24a7f031677f760f67
treec090d7603e8d37f35bb81b98d7ba9205550e62ad
parent45a57c1ea82afb1eb4766f115aedadd6efa543c7
Remove the TUI register window rerender overload

After these restructurings, it should be clear that the rerender
overload can be removed from the TUI register window.  This is done by
moving a bit more logic from show_registers into update_register_data.
After this, update_register_data simply updates the internal state,
and rerender will write to the screen.  All the actual rendering work
is done, ultimately, by display_registers_from.  This split between
updating the model and rendering makes it clear that the recursive
case can't happen any longer.

Tested-By: Tom de Vries <tdevries@suse.de>
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h