gdb: add cmd_list_element::is_alias
[binutils-gdb.git] / gdb / unittests / command-def-selftests.c
index 123667d33699a0d95d401529f9577c783b0f9422..4a6b6789b370cf6c562b344187a595e21e132152 100644 (file)
@@ -155,7 +155,7 @@ traverse_command_structure (struct cmd_list_element **list,
     {
       /* If this command has subcommands and is not an alias,
         traverse the subcommands.  */
-      if (c->subcommands != NULL && c->alias_target == nullptr)
+      if (c->subcommands != NULL && !c->is_alias ())
        {
          /* Recursively call ourselves on the subcommand list,
             passing the right prefix in.  */