From 22b7b0412bceb80ecd5de39a8e05742eb3cbb324 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 Jul 2020 21:21:12 -0600 Subject: Rename tui_data_item_window::item_no tui_data_item_window::item_no is misnamed -- it only can be used for a register, but it references a "display" number as well. (Based on other comments I've seen in the past -- most since deleted -- I think there were plans at one point to display variables in this window as well. However, this was never implemented.) This patch renames this member to be more correct. gdb/ChangeLog 2020-07-01 Tom Tromey * tui/tui-regs.c (tui_data_window::show_register_group) (tui_data_window::check_register_values): Update. * tui/tui-regs.h (struct tui_data_item_window) : Rename from item_no. --- gdb/tui/tui-regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/tui/tui-regs.h') diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h index 7acc0c7..8b5e941 100644 --- a/gdb/tui/tui-regs.h +++ b/gdb/tui/tui-regs.h @@ -48,8 +48,8 @@ struct tui_data_item_window : public tui_gen_win_info return 1; } - /* The register number, or data display number. */ - int item_no = -1; + /* The register number. */ + int regno = -1; bool highlight = false; std::string content; }; -- cgit v1.1