diff options
-rw-r--r-- | gdb/ChangeLog | 12 | ||||
-rw-r--r-- | gdb/tui/tui-data.h | 4 | ||||
-rw-r--r-- | gdb/tui/tui-layout.c | 2 | ||||
-rw-r--r-- | gdb/tui/tui-regs.c | 2 | ||||
-rw-r--r-- | gdb/tui/tui-win.c | 2 | ||||
-rw-r--r-- | gdb/tui/tui-windata.c | 9 | ||||
-rw-r--r-- | gdb/tui/tui-windata.h | 1 |
7 files changed, 23 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3daafb3..7c1ff32 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,17 @@ 2019-07-17 Tom Tromey <tom@tromey.com> + * tui/tui-windata.h (tui_display_all_data): Don't declare. + * tui/tui-windata.c (tui_data_window::display_all_data): Rename + from tui_display_all_data. + * tui/tui-win.c + (tui_data_window::do_make_visible_with_new_height): Update. + * tui/tui-regs.c (tui_show_registers): Update. + * tui/tui-layout.c (tui_set_layout): Update. + * tui/tui-data.h (struct tui_data_window) <display_all_data>: New + method. + +2019-07-17 Tom Tromey <tom@tromey.com> + * tui/tui-windata.h (tui_display_data_from): Don't declare. * tui/tui-windata.c (tui_display_data_from): Remove. (tui_data_window::refresh_all): Update. diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 676345c..a13662e 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -503,6 +503,10 @@ struct tui_data_window : public tui_win_info 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 (); + protected: void do_scroll_vertical (int num_to_scroll) override; diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index d9a1f08..9e683cf 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -215,7 +215,7 @@ tui_set_layout (enum tui_layout_type layout_type) if (!regs_populate && (new_layout == SRC_DATA_COMMAND || new_layout == DISASSEM_DATA_COMMAND)) - tui_display_all_data (); + TUI_DATA_WIN->display_all_data (); tui_update_source_windows_with_addr (gdbarch, addr); diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index ae38d34..5993363 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -157,7 +157,7 @@ tui_show_registers (struct reggroup *group) data_item_win->highlight = false; } TUI_DATA_WIN->current_group = group; - tui_display_all_data (); + TUI_DATA_WIN->display_all_data (); } } diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 557f8b5..ee03cf3 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -1366,7 +1366,7 @@ tui_source_window_base::do_make_visible_with_new_height () void tui_data_window::do_make_visible_with_new_height () { - tui_display_all_data (); + display_all_data (); } /* See tui-data.h. */ diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c index 722d0a5..37fdcfc 100644 --- a/gdb/tui/tui-windata.c +++ b/gdb/tui/tui-windata.c @@ -93,19 +93,18 @@ tui_erase_data_content (const char *prompt) wrefresh (TUI_DATA_WIN->handle); } +/* See tui-data.h. */ -/* This function displays the data that is in the data window's - content. It does not set the content. */ void -tui_display_all_data (void) +tui_data_window::display_all_data () { - if (TUI_DATA_WIN->regs_content.empty ()) + if (regs_content.empty ()) tui_erase_data_content (NO_DATA_STRING); else { tui_erase_data_content (NULL); tui_delete_data_content_windows (); - tui_check_and_display_highlight_if_needed (TUI_DATA_WIN); + tui_check_and_display_highlight_if_needed (this); tui_display_registers_from (0); } } diff --git a/gdb/tui/tui-windata.h b/gdb/tui/tui-windata.h index 9970cfa..adffcaf 100644 --- a/gdb/tui/tui-windata.h +++ b/gdb/tui/tui-windata.h @@ -25,7 +25,6 @@ #include "tui/tui-data.h" extern void tui_erase_data_content (const char *); -extern void tui_display_all_data (void); extern void tui_delete_data_content_windows (void); extern void tui_refresh_data_win (void); |