Introduce tui_data_window::line_from_reg_element_no method
authorTom Tromey <tom@tromey.com>
Wed, 26 Jun 2019 21:46:38 +0000 (15:46 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:18:53 +0000 (12:18 -0600)
commit3b23c5f2662d3240cdc586d3d2e5fb6eb8cba4c7
tree3181cb32b78e06f3b3fdbf8f0913261040739802
parent0b5ec21882bcc27e93144882b84935497da6e7fe
Introduce tui_data_window::line_from_reg_element_no method

This changes tui_line_from_reg_element_no to be a method on
tui_data_window, allowing for the removal of some uses of the
TUI_DATA_WIN global.  (Actually, in this particular patch, the number
of uses is not decreased, but rather the uses are moved to spots that
are already using the global, i.e., increasing the clustering.)

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

* tui/tui-windata.c (tui_display_data_from)
(tui_data_window::do_scroll_vertical): Update.
* tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
* tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
Rename from tui_line_from_reg_element_no.
(tui_display_registers_from_line): Update.
* tui/tui-data.h (struct tui_data_window)
<line_from_reg_element_no>: New method.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h
gdb/tui/tui-windata.c
This page took 0.025992 seconds and 4 git commands to generate.