tui_data_window::rerender clears the data item windows, and then calls
display_all_data. However, that method only does anything if the
contents are not empty. So, display_all_data can be renamed and the
wrapper removed.
gdb/ChangeLog
2019-08-30 Tom Tromey <tom@tromey.com>
* tui/tui-regs.h (struct tui_data_window) <display_all_data>:
Don't declare.
* tui/tui-regs.c (tui_data_window::show_registers): Call
rerender.
(tui_data_window::rerender): Rename from display_all_data.
(tui_data_window::rerender): Remove old implementation.
+2019-08-30 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
+ Don't declare.
+ * tui/tui-regs.c (tui_data_window::show_registers): Call
+ rerender.
+ (tui_data_window::rerender): Rename from display_all_data.
+ (tui_data_window::rerender): Remove old implementation.
+
2019-08-30 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_data_window::display_all_data): Change
for (auto &&data_item_win : regs_content)
data_item_win.highlight = false;
current_group = group;
- display_all_data ();
+ rerender ();
}
else
{
/* See tui-regs.h. */
void
-tui_data_window::display_all_data ()
+tui_data_window::rerender ()
{
if (regs_content.empty ())
erase_data_content (_("[ Register Values Unavailable ]"));
/* See tui-regs.h. */
-void
-tui_data_window::rerender ()
-{
- /* Delete all data item windows. */
- for (auto &&win : regs_content)
- {
- tui_delete_win (win.handle);
- win.handle = NULL;
- }
- display_all_data ();
-}
-
-/* See tui-regs.h. */
-
void
tui_data_window::refresh_window ()
{
past the register area (-1) is returned. */
int first_reg_element_no_inline (int line_no) const;
- /* Displays the data that is in the data window's content. It does
- not set the content. */
- void display_all_data ();
-
/* Delete all the item windows in the data window. This is usually
done when the data window is scrolled. */
void delete_data_content_windows ();