aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2015-05-21 21:21:40 +0200
committerAndrew Burgess <andrew.burgess@embecosm.com>2015-05-21 21:24:30 +0200
commitb75c69bbf05b90a71a3ed7e54ad24ac5ded2ae1e (patch)
treedf7f0606ad485e26310d5e75e3aae881c0fa0801 /gdb/tui
parentc1b009eed88d41b22c9faf68d0dc15967292f6c9 (diff)
downloadgdb-b75c69bbf05b90a71a3ed7e54ad24ac5ded2ae1e.zip
gdb-b75c69bbf05b90a71a3ed7e54ad24ac5ded2ae1e.tar.gz
gdb-b75c69bbf05b90a71a3ed7e54ad24ac5ded2ae1e.tar.bz2
gdb: Use NULL not 0 in a tui function.
gdb/ChangeLog: * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-regs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 903c7c6..8d4c0f8 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -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);