gdb: Use NULL not 0 in a tui function.
gdb/ChangeLog: * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
This commit is contained in:
parent
c1b009eed8
commit
b75c69bbf0
|
@ -1,3 +1,7 @@
|
|||
2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
|
||||
|
||||
2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
|
||||
|
|
|
@ -561,14 +561,14 @@ tui_reg_next_command (char *arg, int from_tty)
|
|||
{
|
||||
struct gdbarch *gdbarch = get_current_arch ();
|
||||
|
||||
if (TUI_DATA_WIN != 0)
|
||||
if (TUI_DATA_WIN != NULL)
|
||||
{
|
||||
struct reggroup *group
|
||||
= TUI_DATA_WIN->detail.data_display_info.current_group;
|
||||
|
||||
group = reggroup_next (gdbarch, group);
|
||||
if (group == 0)
|
||||
group = reggroup_next (gdbarch, 0);
|
||||
if (group == NULL)
|
||||
group = reggroup_next (gdbarch, NULL);
|
||||
|
||||
if (group)
|
||||
tui_show_registers (group);
|
||||
|
|
Loading…
Reference in New Issue