aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-regs.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-14 19:45:55 -0600
committerTom Tromey <tom@tromey.com>2019-08-30 12:57:04 -0600
commit89df7f9056d72418720ac655e1ad97decc471da9 (patch)
treed0e7653011223905a3c620f94207d5827ad7aa45 /gdb/tui/tui-regs.c
parent1bf2866a59530d9e8384807bc44b833e8647d329 (diff)
downloadgdb-89df7f9056d72418720ac655e1ad97decc471da9.zip
gdb-89df7f9056d72418720ac655e1ad97decc471da9.tar.gz
gdb-89df7f9056d72418720ac655e1ad97decc471da9.tar.bz2
Private data members in tui_data_window
This changes tui_data_window so that the data members are private. This required the addition of a simple accessor method in one case. gdb/ChangeLog 2019-08-30 Tom Tromey <tom@tromey.com> * tui/tui-regs.h (struct tui_data_window) <regs_content, regs_column_count, current_group>: Move later. Now private. <get_current_group>: New method. * tui/tui-regs.c (tui_reg_command): Update. * tui/tui-layout.c (tui_set_layout): Update.
Diffstat (limited to 'gdb/tui/tui-regs.c')
-rw-r--r--gdb/tui/tui-regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 4a09a59..98096e2 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -622,7 +622,7 @@ tui_reg_command (const char *args, int from_tty)
if (TUI_DATA_WIN == NULL || !TUI_DATA_WIN->is_visible ())
tui_reg_layout ();
- struct reggroup *current_group = TUI_DATA_WIN->current_group;
+ struct reggroup *current_group = TUI_DATA_WIN->get_current_group ();
if (strncmp (args, "next", len) == 0)
match = tui_reg_next (current_group, gdbarch);
else if (strncmp (args, "prev", len) == 0)