
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 <tom@tromey.com> * 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) <last_regs_line_no>: New method.
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/* TUI display registers in window.
|
|
|
|
Copyright (C) 1998-2019 Free Software Foundation, Inc.
|
|
|
|
Contributed by Hewlett-Packard Company.
|
|
|
|
This file is part of GDB.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef TUI_TUI_REGS_H
|
|
#define TUI_TUI_REGS_H
|
|
|
|
#include "tui/tui-data.h" /* For struct tui_register_display_type. */
|
|
|
|
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_first_reg_element_inline (int);
|
|
extern int tui_line_from_reg_element_no (int);
|
|
extern int tui_first_reg_element_no_inline (int lineno);
|
|
|
|
#endif /* TUI_TUI_REGS_H */
|