]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Introduce tui_data_window::last_regs_line_no method
authorTom Tromey <tom@tromey.com>
Wed, 26 Jun 2019 21:44:51 +0000 (15:44 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:18:53 +0000 (12:18 -0600)
commit0b5ec21882bcc27e93144882b84935497da6e7fe
tree12d45778eaac85d03d3f0b5e60e4a78241ff4ee1
parent0807ab7b88fa5ffb138ba1ee22b33d26e239de2f
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  <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.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h