Introduce tui_data_window::first_reg_element_no_inline
authorTom Tromey <tom@tromey.com>
Wed, 26 Jun 2019 21:49:00 +0000 (15:49 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:18:54 +0000 (12:18 -0600)
commitbaff0c28b83bd1ad7949d07b78fdb85ad6be49a5
tree7e3da6262f4adf6ac57c8f85eb8f664a388cea4b
parent3b23c5f2662d3240cdc586d3d2e5fb6eb8cba4c7
Introduce tui_data_window::first_reg_element_no_inline

This changes tui_first_reg_element_no_inline to be a method on
tui_data_window.  This again moves uses of the TUI_DATA_WIN global
from this function into other functions that are already using the
global.

gdb/ChangeLog
2019-07-17  Tom Tromey  <tom@tromey.com>

* tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
declare.
* tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
Rename from tui_first_reg_element_no_inline.
(tui_display_reg_element_at_line)
(tui_display_registers_from_line): Update.
* tui/tui-data.h (struct tui_data_window)
<first_reg_element_no_inline>: New method.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h