mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Remove NULL check from tui_reg_command
tui_reg_command has an unnecessary NULL check. The preceding call to tui_reg_layout will ensure the window exists. This patch removes the check. gdb/ChangeLog 2019-08-20 Tom Tromey <tom@tromey.com> * tui/tui-regs.c (tui_reg_command): Remove NULL check.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2019-08-20 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* tui/tui-source.h (struct tui_source_window): Update.
|
* tui/tui-source.h (struct tui_source_window): Update.
|
||||||
|
@ -669,9 +669,7 @@ tui_reg_command (const char *args, int from_tty)
|
|||||||
if (TUI_DATA_WIN == NULL || !TUI_DATA_WIN->is_visible ())
|
if (TUI_DATA_WIN == NULL || !TUI_DATA_WIN->is_visible ())
|
||||||
tui_reg_layout ();
|
tui_reg_layout ();
|
||||||
|
|
||||||
struct reggroup *current_group = NULL;
|
struct reggroup *current_group = TUI_DATA_WIN->current_group;
|
||||||
if (TUI_DATA_WIN != NULL)
|
|
||||||
current_group = TUI_DATA_WIN->current_group;
|
|
||||||
if (strncmp (args, "next", len) == 0)
|
if (strncmp (args, "next", len) == 0)
|
||||||
match = tui_reg_next (current_group, gdbarch);
|
match = tui_reg_next (current_group, gdbarch);
|
||||||
else if (strncmp (args, "prev", len) == 0)
|
else if (strncmp (args, "prev", len) == 0)
|
||||||
|
Reference in New Issue
Block a user