Add Python support for dynamic types
[deliverable/binutils-gdb.git] / gdb / cp-support.c
index 9286259f4590529993dda20e709ffb8d5a6ee1e2..6601272e717ccfd53269c945543ad60ab0044a14 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper routines for C++ support in GDB.
-   Copyright (C) 2002-2019 Free Software Foundation, Inc.
+   Copyright (C) 2002-2020 Free Software Foundation, Inc.
 
    Contributed by MontaVista Software.
 
@@ -2118,18 +2118,6 @@ test_cp_remove_params ()
 
 #endif /* GDB_SELF_CHECK */
 
-/* Don't allow just "maintenance cplus".  */
-
-static  void
-maint_cplus_command (const char *arg, int from_tty)
-{
-  printf_unfiltered (_("\"maintenance cplus\" must be followed "
-                      "by the name of a command.\n"));
-  help_list (maint_cplus_cmd_list,
-            "maintenance cplus ",
-            all_commands, gdb_stdout);
-}
-
 /* This is a front end for cp_find_first_component, for unit testing.
    Be careful when using it: see the NOTE above
    cp_find_first_component.  */
@@ -2163,15 +2151,15 @@ info_vtbl_command (const char *arg, int from_tty)
   cplus_print_vtable (value);
 }
 
+void _initialize_cp_support ();
 void
-_initialize_cp_support (void)
+_initialize_cp_support ()
 {
-  add_prefix_cmd ("cplus", class_maintenance,
-                 maint_cplus_command,
-                 _("C++ maintenance commands."),
-                 &maint_cplus_cmd_list,
-                 "maintenance cplus ",
-                 0, &maintenancelist);
+  add_basic_prefix_cmd ("cplus", class_maintenance,
+                       _("C++ maintenance commands."),
+                       &maint_cplus_cmd_list,
+                       "maintenance cplus ",
+                       0, &maintenancelist);
   add_alias_cmd ("cp", "cplus",
                 class_maintenance, 1,
                 &maintenancelist);
This page took 0.03276 seconds and 4 git commands to generate.