diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/tui/tui-regs.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c4a1179..ce64e7a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2019-08-20 Tom Tromey <tom@tromey.com> + * tui/tui-regs.c (tui_reg_command): Remove NULL check. + +2019-08-20 Tom Tromey <tom@tromey.com> + * tui/tui-source.h (struct tui_source_window): Update. * tui/tui-regs.c (tui_show_registers): Update. * tui/tui-disasm.h (struct tui_disasm_window): Update. diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 8fcb7bc..b3c7ce6 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -669,9 +669,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 = NULL; - if (TUI_DATA_WIN != NULL) - current_group = TUI_DATA_WIN->current_group; + struct reggroup *current_group = TUI_DATA_WIN->current_group; if (strncmp (args, "next", len) == 0) match = tui_reg_next (current_group, gdbarch); else if (strncmp (args, "prev", len) == 0) |