From 0b5ec21882bcc27e93144882b84935497da6e7fe Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 26 Jun 2019 15:44:51 -0600 Subject: Introduce tui_data_window::last_regs_line_no method This changes tui_last_regs_line_no into a method on tui_data_window, allowing the removal of uses of the TUI_DATA_WIN global. gdb/ChangeLog 2019-07-17 Tom Tromey * tui/tui-regs.h (tui_last_regs_line_no): Don't declare. * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from tui_last_regs_line_no. (tui_display_reg_element_at_line) (tui_display_registers_from_line): Update. * tui/tui-data.h (struct tui_data_window) : New method. --- gdb/tui/tui-regs.h | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/tui/tui-regs.h') diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h index 54b1b08..fcb440d 100644 --- a/gdb/tui/tui-regs.h +++ b/gdb/tui/tui-regs.h @@ -28,7 +28,6 @@ extern void tui_check_register_values (struct frame_info *); extern void tui_show_registers (struct reggroup *group); extern void tui_display_registers_from (int); extern int tui_display_registers_from_line (int, int); -extern int tui_last_regs_line_no (void); extern int tui_first_reg_element_inline (int); extern int tui_line_from_reg_element_no (int); extern int tui_first_reg_element_no_inline (int lineno); -- cgit v1.1