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 <tom@tromey.com>
* 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) <regno>: Rename
from item_no.
+2020-07-01 Tom Tromey <tom@tromey.com>
+
+ * 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) <regno>: Rename
+ from item_no.
+
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_data_window::show_register_group): Remove
data_item_win = &m_regs_content[pos];
if (!refresh_values_only)
{
- data_item_win->item_no = regnum;
+ data_item_win->regno = regnum;
data_item_win->highlight = false;
}
tui_get_register (frame, data_item_win, regnum, 0);
was_hilighted = data_item_win.highlight;
tui_get_register (frame, &data_item_win,
- data_item_win.item_no,
+ data_item_win.regno,
&data_item_win.highlight);
if (data_item_win.highlight || was_hilighted)
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;
};