gdb: tui: Minor fix to compare against NULL.
Minor coding standard fix to compare against NULL. gdb/ChangeLog: * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
This commit is contained in:
parent
55b4002792
commit
b93fd21dcc
|
@ -1,3 +1,7 @@
|
||||||
|
2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
|
* tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
|
||||||
|
|
||||||
2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
|
2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* tui/tui-regs.c (tui_reg_prev_command): New function.
|
* tui/tui-regs.c (tui_reg_prev_command): New function.
|
||||||
|
|
|
@ -570,7 +570,7 @@ tui_reg_next_command (char *arg, int from_tty)
|
||||||
if (group == NULL)
|
if (group == NULL)
|
||||||
group = reggroup_next (gdbarch, NULL);
|
group = reggroup_next (gdbarch, NULL);
|
||||||
|
|
||||||
if (group)
|
if (group != NULL)
|
||||||
tui_show_registers (group);
|
tui_show_registers (group);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue