when printing the GDB config, explicitly say if configured without python
[deliverable/binutils-gdb.git] / gdb / command.h
index cbcf523cc9b09be1a70aeb9d0b706502709e843b..e3d55c2dcbac1cfc79912c2e62abe0a6da906161 100644 (file)
@@ -1,6 +1,6 @@
 /* Header file for command creation.
 
-   Copyright (C) 1986-2017 Free Software Foundation, Inc.
+   Copyright (C) 1986-2018 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -148,6 +148,12 @@ extern struct cmd_list_element *add_cmd (const char *, enum command_class,
                                         const char *,
                                         struct cmd_list_element **);
 
+extern struct cmd_list_element *add_cmd_suppress_notification
+                       (const char *name, enum command_class theclass,
+                        cmd_const_cfunc_ftype *fun, const char *doc,
+                        struct cmd_list_element **list,
+                        int *suppress_notification);
+
 extern struct cmd_list_element *add_alias_cmd (const char *, const char *,
                                               enum command_class, int,
                                               struct cmd_list_element **);
@@ -165,6 +171,14 @@ extern struct cmd_list_element *add_prefix_cmd (const char *, enum command_class
                                                const char *, int,
                                                struct cmd_list_element **);
 
+extern struct cmd_list_element *add_prefix_cmd_suppress_notification
+                       (const char *name, enum command_class theclass,
+                        cmd_const_cfunc_ftype *fun,
+                        const char *doc, struct cmd_list_element **prefixlist,
+                        const char *prefixname, int allow_unknown,
+                        struct cmd_list_element **list,
+                        int *suppress_notification);
+
 extern struct cmd_list_element *add_abbrev_prefix_cmd (const char *,
                                                       enum command_class,
                                                       cmd_const_cfunc_ftype *fun,
@@ -174,10 +188,10 @@ extern struct cmd_list_element *add_abbrev_prefix_cmd (const char *,
                                                       struct cmd_list_element
                                                       **);
 
-typedef void cmd_sfunc_ftype (char *args, int from_tty,
-                             struct cmd_list_element *c);
+typedef void cmd_const_sfunc_ftype (const char *args, int from_tty,
+                                   struct cmd_list_element *c);
 extern void set_cmd_sfunc (struct cmd_list_element *cmd,
-                          cmd_sfunc_ftype *sfunc);
+                          cmd_const_sfunc_ftype *sfunc);
 
 /* A completion routine.  Add possible completions to tracker.
 
@@ -297,7 +311,7 @@ extern void add_setshow_enum_cmd (const char *name,
                                  const char *set_doc,
                                  const char *show_doc,
                                  const char *help_doc,
-                                 cmd_sfunc_ftype *set_func,
+                                 cmd_const_sfunc_ftype *set_func,
                                  show_value_ftype *show_func,
                                  struct cmd_list_element **set_list,
                                  struct cmd_list_element **show_list);
@@ -308,7 +322,7 @@ extern void add_setshow_auto_boolean_cmd (const char *name,
                                          const char *set_doc,
                                          const char *show_doc,
                                          const char *help_doc,
-                                         cmd_sfunc_ftype *set_func,
+                                         cmd_const_sfunc_ftype *set_func,
                                          show_value_ftype *show_func,
                                          struct cmd_list_element **set_list,
                                          struct cmd_list_element **show_list);
@@ -318,7 +332,7 @@ extern void add_setshow_boolean_cmd (const char *name,
                                     int *var,
                                     const char *set_doc, const char *show_doc,
                                     const char *help_doc,
-                                    cmd_sfunc_ftype *set_func,
+                                    cmd_const_sfunc_ftype *set_func,
                                     show_value_ftype *show_func,
                                     struct cmd_list_element **set_list,
                                     struct cmd_list_element **show_list);
@@ -329,7 +343,7 @@ extern void add_setshow_filename_cmd (const char *name,
                                      const char *set_doc,
                                      const char *show_doc,
                                      const char *help_doc,
-                                     cmd_sfunc_ftype *set_func,
+                                     cmd_const_sfunc_ftype *set_func,
                                      show_value_ftype *show_func,
                                      struct cmd_list_element **set_list,
                                      struct cmd_list_element **show_list);
@@ -340,7 +354,7 @@ extern void add_setshow_string_cmd (const char *name,
                                    const char *set_doc,
                                    const char *show_doc,
                                    const char *help_doc,
-                                   cmd_sfunc_ftype *set_func,
+                                   cmd_const_sfunc_ftype *set_func,
                                    show_value_ftype *show_func,
                                    struct cmd_list_element **set_list,
                                    struct cmd_list_element **show_list);
@@ -352,7 +366,7 @@ extern struct cmd_list_element *add_setshow_string_noescape_cmd
                       const char *set_doc,
                       const char *show_doc,
                       const char *help_doc,
-                      cmd_sfunc_ftype *set_func,
+                      cmd_const_sfunc_ftype *set_func,
                       show_value_ftype *show_func,
                       struct cmd_list_element **set_list,
                       struct cmd_list_element **show_list);
@@ -363,7 +377,7 @@ extern void add_setshow_optional_filename_cmd (const char *name,
                                               const char *set_doc,
                                               const char *show_doc,
                                               const char *help_doc,
-                                              cmd_sfunc_ftype *set_func,
+                                              cmd_const_sfunc_ftype *set_func,
                                               show_value_ftype *show_func,
                                               struct cmd_list_element **set_list,
                                               struct cmd_list_element **show_list);
@@ -374,7 +388,7 @@ extern void add_setshow_integer_cmd (const char *name,
                                     const char *set_doc,
                                     const char *show_doc,
                                     const char *help_doc,
-                                    cmd_sfunc_ftype *set_func,
+                                    cmd_const_sfunc_ftype *set_func,
                                     show_value_ftype *show_func,
                                     struct cmd_list_element **set_list,
                                     struct cmd_list_element **show_list);
@@ -385,7 +399,7 @@ extern void add_setshow_uinteger_cmd (const char *name,
                                      const char *set_doc,
                                      const char *show_doc,
                                      const char *help_doc,
-                                     cmd_sfunc_ftype *set_func,
+                                     cmd_const_sfunc_ftype *set_func,
                                      show_value_ftype *show_func,
                                      struct cmd_list_element **set_list,
                                      struct cmd_list_element **show_list);
@@ -396,7 +410,7 @@ extern void add_setshow_zinteger_cmd (const char *name,
                                      const char *set_doc,
                                      const char *show_doc,
                                      const char *help_doc,
-                                     cmd_sfunc_ftype *set_func,
+                                     cmd_const_sfunc_ftype *set_func,
                                      show_value_ftype *show_func,
                                      struct cmd_list_element **set_list,
                                      struct cmd_list_element **show_list);
@@ -407,7 +421,7 @@ extern void add_setshow_zuinteger_cmd (const char *name,
                                       const char *set_doc,
                                       const char *show_doc,
                                       const char *help_doc,
-                                      cmd_sfunc_ftype *set_func,
+                                      cmd_const_sfunc_ftype *set_func,
                                       show_value_ftype *show_func,
                                       struct cmd_list_element **set_list,
                                       struct cmd_list_element **show_list);
@@ -419,7 +433,7 @@ extern void
                                       const char *set_doc,
                                       const char *show_doc,
                                       const char *help_doc,
-                                      cmd_sfunc_ftype *set_func,
+                                      cmd_const_sfunc_ftype *set_func,
                                       show_value_ftype *show_func,
                                       struct cmd_list_element **set_list,
                                       struct cmd_list_element **show_list);
@@ -453,6 +467,6 @@ extern int cmd_func_p (struct cmd_list_element *cmd);
 
 /* Call the command function.  */
 extern void cmd_func (struct cmd_list_element *cmd,
-                     char *args, int from_tty);
+                     const char *args, int from_tty);
 
 #endif /* !defined (COMMAND_H) */
This page took 0.026308 seconds and 4 git commands to generate.