diff options
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/tui/tui-regs.c | 4 | ||||
-rw-r--r-- | gdb/tui/tui-regs.h | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eeb8bdc..2291034 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 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 useless "if". 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) 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; }; |