Introduce tui_data_window::display_reg_element_at_line method
authorTom Tromey <tom@tromey.com>
Wed, 26 Jun 2019 22:15:46 +0000 (16:15 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:19:00 +0000 (12:19 -0600)
commitaca2dd16474ec88b3969436044801f58f9163c5c
treed7e93f02623e0457a1ae644ba5ee642c556cc816
parent517e9505fa563c83b4d5cb192e423a0d6baac752
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.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-regs.c