Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / top.c
index 2eb68fd2bc0e0103e7e164d6194630f3de8e5b0a..6e0f43d2fd92d80d53927ea3e78882da9cbb9a67 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -647,7 +647,7 @@ execute_command (const char *p, int from_tty)
       if (c->theclass == class_user && c->user_commands)
        execute_user_command (c, arg);
       else if (c->theclass == class_user
-              && c->prefixlist && !c->allow_unknown)
+              && c->is_prefix () && !c->allow_unknown)
        /* If this is a user defined prefix that does not allow unknown
           (in other words, C is a prefix command and not a command
           that can be followed by its args), report the list of
@@ -659,14 +659,14 @@ execute_command (const char *p, int from_tty)
          printf_unfiltered
            ("\"%s\" must be followed by the name of a subcommand.\n",
             prefixname_no_space.c_str ());
-         help_list (*c->prefixlist, prefixname.c_str (), all_commands,
+         help_list (*c->subcommands, prefixname.c_str (), all_commands,
                     gdb_stdout);
        }
       else if (c->type == set_cmd)
        do_set_command (arg, from_tty, c);
       else if (c->type == show_cmd)
        do_show_command (arg, from_tty, c);
-      else if (!cmd_func_p (c))
+      else if (c->is_command_class_help ())
        error (_("That is not a command, just a help topic."));
       else if (deprecated_call_command_hook)
        deprecated_call_command_hook (c, arg, from_tty);
@@ -2345,7 +2345,7 @@ input settings."),
                        show_interactive_mode,
                        &setlist, &showlist);
 
-  c = add_setshow_boolean_cmd ("startup-quietly", class_support,
+  add_setshow_boolean_cmd ("startup-quietly", class_support,
                               &startup_quiet, _("\
 Set whether GDB should start up quietly."), _("                \
 Show whether GDB should start up quietly."), _("\
This page took 0.040045 seconds and 4 git commands to generate.