+2019-07-17 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-regs.c (tui_show_registers): Simplify.
+
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_show_registers): Update.
void
tui_show_registers (struct reggroup *group)
{
- enum tui_status ret = TUI_FAILURE;
-
/* Make sure the curses mode is enabled. */
tui_enable ();
{
tui_show_register_group (TUI_DATA_WIN, group, get_selected_frame (NULL),
group == TUI_DATA_WIN->current_group);
- ret = TUI_SUCCESS;
- }
- if (ret == TUI_FAILURE)
- {
- TUI_DATA_WIN->current_group = 0;
- TUI_DATA_WIN->erase_data_content (NO_REGS_STRING);
- }
- else
- {
+
/* Clear all notation of changed values. */
for (auto &&data_item_win : TUI_DATA_WIN->regs_content)
{
TUI_DATA_WIN->current_group = group;
TUI_DATA_WIN->display_all_data ();
}
+ else
+ {
+ TUI_DATA_WIN->current_group = 0;
+ TUI_DATA_WIN->erase_data_content (NO_REGS_STRING);
+ }
}