GNU Binutils with patches for OS216
Revisão | 22b7b0412bceb80ecd5de39a8e05742eb3cbb324 (tree) |
---|---|
Hora | 2020-07-02 12:21:15 |
Autor | Tom Tromey <tom@trom...> |
Commiter | Tom Tromey |
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.
@@ -1,5 +1,12 @@ | ||
1 | 1 | 2020-07-01 Tom Tromey <tom@tromey.com> |
2 | 2 | |
3 | + * tui/tui-regs.c (tui_data_window::show_register_group) | |
4 | + (tui_data_window::check_register_values): Update. | |
5 | + * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename | |
6 | + from item_no. | |
7 | + | |
8 | +2020-07-01 Tom Tromey <tom@tromey.com> | |
9 | + | |
3 | 10 | * tui/tui-regs.c (tui_data_window::show_register_group): Remove |
4 | 11 | useless "if". |
5 | 12 |
@@ -259,7 +259,7 @@ tui_data_window::show_register_group (struct reggroup *group, | ||
259 | 259 | data_item_win = &m_regs_content[pos]; |
260 | 260 | if (!refresh_values_only) |
261 | 261 | { |
262 | - data_item_win->item_no = regnum; | |
262 | + data_item_win->regno = regnum; | |
263 | 263 | data_item_win->highlight = false; |
264 | 264 | } |
265 | 265 | tui_get_register (frame, data_item_win, regnum, 0); |
@@ -486,7 +486,7 @@ tui_data_window::check_register_values (struct frame_info *frame) | ||
486 | 486 | was_hilighted = data_item_win.highlight; |
487 | 487 | |
488 | 488 | tui_get_register (frame, &data_item_win, |
489 | - data_item_win.item_no, | |
489 | + data_item_win.regno, | |
490 | 490 | &data_item_win.highlight); |
491 | 491 | |
492 | 492 | if (data_item_win.highlight || was_hilighted) |
@@ -48,8 +48,8 @@ struct tui_data_item_window : public tui_gen_win_info | ||
48 | 48 | return 1; |
49 | 49 | } |
50 | 50 | |
51 | - /* The register number, or data display number. */ | |
52 | - int item_no = -1; | |
51 | + /* The register number. */ | |
52 | + int regno = -1; | |
53 | 53 | bool highlight = false; |
54 | 54 | std::string content; |
55 | 55 | }; |