aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-layout.c')
-rw-r--r--gdb/tui/tui-layout.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 95ed77e..f2d4412 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -248,10 +248,7 @@ tui_set_layout (enum tui_layout_type layout_type,
}
if (regs_populate)
{
- layout_def->regs_display_type =
- (regs_display_type == TUI_UNDEFINED_REGS ?
- TUI_GENERAL_REGS : regs_display_type);
- tui_show_registers (layout_def->regs_display_type);
+ tui_show_registers (TUI_DATA_WIN->detail.data_display_info.current_group);
}
}
}