aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-regs.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-07-01 21:21:12 -0600
committerTom Tromey <tom@tromey.com>2020-07-01 21:21:15 -0600
commit22b7b0412bceb80ecd5de39a8e05742eb3cbb324 (patch)
tree51937463e4dd9f1115b18fefe62a4b49686bd769 /gdb/tui/tui-regs.c
parentc9753adb0153fbb5ce01583881862642e7f126af (diff)
downloadgdb-22b7b0412bceb80ecd5de39a8e05742eb3cbb324.zip
gdb-22b7b0412bceb80ecd5de39a8e05742eb3cbb324.tar.gz
gdb-22b7b0412bceb80ecd5de39a8e05742eb3cbb324.tar.bz2
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 <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.
Diffstat (limited to 'gdb/tui/tui-regs.c')
-rw-r--r--gdb/tui/tui-regs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 51fc475..fcabe73 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -259,7 +259,7 @@ tui_data_window::show_register_group (struct reggroup *group,
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);
@@ -486,7 +486,7 @@ tui_data_window::check_register_values (struct frame_info *frame)
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)