diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-26 16:15:46 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-07-17 12:19:00 -0600 |
commit | aca2dd16474ec88b3969436044801f58f9163c5c (patch) | |
tree | d7e93f02623e0457a1ae644ba5ee642c556cc816 /gdb/tui/tui-data.h | |
parent | 517e9505fa563c83b4d5cb192e423a0d6baac752 (diff) | |
download | binutils-aca2dd16474ec88b3969436044801f58f9163c5c.zip binutils-aca2dd16474ec88b3969436044801f58f9163c5c.tar.gz binutils-aca2dd16474ec88b3969436044801f58f9163c5c.tar.bz2 |
Introduce tui_data_window::display_reg_element_at_line method
This changes tui_display_reg_element_at_line to be a method on
tui_data_window, allowing for the removal of some uses of the
TUI_DATA_WIN global.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
Rename from tui_display_reg_element_at_line.
(tui_data_window::display_registers_from_line): Update.
* tui/tui-data.h (struct tui_data_window)
<display_reg_element_at_line>: New method.
Diffstat (limited to 'gdb/tui/tui-data.h')
-rw-r--r-- | gdb/tui/tui-data.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 5220c4b..ecf23a2 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -535,6 +535,12 @@ protected: /* Return the index of the first element displayed. If none are displayed, then return -1. */ int first_data_item_displayed (); + + /* Display the registers in the content from 'start_element_no' on + 'start_line_no' until the end of the register content or the end + of the display height. This function checks that we won't + display off the end of the register display. */ + void display_reg_element_at_line (int start_element_no, int start_line_no); }; struct tui_cmd_window : public tui_win_info |