Fix incorrect reference to source files
[deliverable/binutils-gdb.git] / gdb / command.h
index 4ac3bfb8558157ec95b41c945dd5cb961f778ffe..965d91fdc15d3f40272a353a0feec019ce35a144 100644 (file)
@@ -1,6 +1,6 @@
 /* Header file for command creation.
 
-   Copyright (C) 1986-2014 Free Software Foundation, Inc.
+   Copyright (C) 1986-2016 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
@@ -115,6 +115,17 @@ struct cmd_list_element;
 
 typedef void cmd_cfunc_ftype (char *args, int from_tty);
 
+/* This structure specifies notifications to be suppressed by a cli
+   command interpreter.  */
+
+struct cli_suppress_notification
+{
+  /* Inferior, thread, frame selected notification suppressed?  */
+  int user_selected_context;
+};
+
+extern struct cli_suppress_notification cli_suppress_notification;
+
 /* Forward-declarations of the entry-points of cli/cli-decode.c.  */
 
 /* API to the manipulation of command lists.  */
@@ -159,8 +170,16 @@ extern void set_cmd_sfunc (struct cmd_list_element *cmd,
 typedef VEC (char_ptr) *completer_ftype (struct cmd_list_element *,
                                         const char *, const char *);
 
+typedef void completer_ftype_void (struct cmd_list_element *,
+                                  const char *, const char *);
+
 extern void set_cmd_completer (struct cmd_list_element *, completer_ftype *);
 
+/* Set the completer_handle_brkchars callback.  */
+
+extern void set_cmd_completer_handle_brkchars (struct cmd_list_element *,
+                                              completer_ftype_void *);
+
 /* HACK: cagney/2002-02-23: Code, mostly in tracepoints.c, grubs
    around in cmd objects to test the value of the commands sfunc().  */
 extern int cmd_cfunc_eq (struct cmd_list_element *cmd,
@@ -210,6 +229,11 @@ extern struct cmd_list_element *add_com (const char *, enum command_class,
 extern struct cmd_list_element *add_com_alias (const char *, const char *,
                                               enum command_class, int);
 
+extern struct cmd_list_element *add_com_suppress_notification
+                      (const char *name, enum command_class theclass,
+                       cmd_cfunc_ftype *fun, const char *doc,
+                       int *supress_notification);
+
 extern struct cmd_list_element *add_info (const char *,
                                          cmd_cfunc_ftype *fun,
                                          const char *);
@@ -240,7 +264,7 @@ typedef void (show_value_ftype) (struct ui_file *file,
 extern show_value_ftype deprecated_show_value_hack;
 
 extern void add_setshow_enum_cmd (const char *name,
-                                 enum command_class class,
+                                 enum command_class theclass,
                                  const char *const *enumlist,
                                  const char **var,
                                  const char *set_doc,
@@ -252,7 +276,7 @@ extern void add_setshow_enum_cmd (const char *name,
                                  struct cmd_list_element **show_list);
 
 extern void add_setshow_auto_boolean_cmd (const char *name,
-                                         enum command_class class,
+                                         enum command_class theclass,
                                          enum auto_boolean *var,
                                          const char *set_doc,
                                          const char *show_doc,
@@ -263,7 +287,7 @@ extern void add_setshow_auto_boolean_cmd (const char *name,
                                          struct cmd_list_element **show_list);
 
 extern void add_setshow_boolean_cmd (const char *name,
-                                    enum command_class class,
+                                    enum command_class theclass,
                                     int *var,
                                     const char *set_doc, const char *show_doc,
                                     const char *help_doc,
@@ -273,7 +297,7 @@ extern void add_setshow_boolean_cmd (const char *name,
                                     struct cmd_list_element **show_list);
 
 extern void add_setshow_filename_cmd (const char *name,
-                                     enum command_class class,
+                                     enum command_class theclass,
                                      char **var,
                                      const char *set_doc,
                                      const char *show_doc,
@@ -284,7 +308,7 @@ extern void add_setshow_filename_cmd (const char *name,
                                      struct cmd_list_element **show_list);
 
 extern void add_setshow_string_cmd (const char *name,
-                                   enum command_class class,
+                                   enum command_class theclass,
                                    char **var,
                                    const char *set_doc,
                                    const char *show_doc,
@@ -296,7 +320,7 @@ extern void add_setshow_string_cmd (const char *name,
 
 extern struct cmd_list_element *add_setshow_string_noescape_cmd
                      (const char *name,
-                      enum command_class class,
+                      enum command_class theclass,
                       char **var,
                       const char *set_doc,
                       const char *show_doc,
@@ -307,7 +331,7 @@ extern struct cmd_list_element *add_setshow_string_noescape_cmd
                       struct cmd_list_element **show_list);
 
 extern void add_setshow_optional_filename_cmd (const char *name,
-                                              enum command_class class,
+                                              enum command_class theclass,
                                               char **var,
                                               const char *set_doc,
                                               const char *show_doc,
@@ -318,7 +342,7 @@ extern void add_setshow_optional_filename_cmd (const char *name,
                                               struct cmd_list_element **show_list);
 
 extern void add_setshow_integer_cmd (const char *name,
-                                    enum command_class class,
+                                    enum command_class theclass,
                                     int *var,
                                     const char *set_doc,
                                     const char *show_doc,
@@ -329,7 +353,7 @@ extern void add_setshow_integer_cmd (const char *name,
                                     struct cmd_list_element **show_list);
 
 extern void add_setshow_uinteger_cmd (const char *name,
-                                     enum command_class class,
+                                     enum command_class theclass,
                                      unsigned int *var,
                                      const char *set_doc,
                                      const char *show_doc,
@@ -340,7 +364,7 @@ extern void add_setshow_uinteger_cmd (const char *name,
                                      struct cmd_list_element **show_list);
 
 extern void add_setshow_zinteger_cmd (const char *name,
-                                     enum command_class class,
+                                     enum command_class theclass,
                                      int *var,
                                      const char *set_doc,
                                      const char *show_doc,
@@ -351,7 +375,7 @@ extern void add_setshow_zinteger_cmd (const char *name,
                                      struct cmd_list_element **show_list);
 
 extern void add_setshow_zuinteger_cmd (const char *name,
-                                      enum command_class class,
+                                      enum command_class theclass,
                                       unsigned int *var,
                                       const char *set_doc,
                                       const char *show_doc,
@@ -363,7 +387,7 @@ extern void add_setshow_zuinteger_cmd (const char *name,
 
 extern void
   add_setshow_zuinteger_unlimited_cmd (const char *name,
-                                      enum command_class class,
+                                      enum command_class theclass,
                                       int *var,
                                       const char *set_doc,
                                       const char *show_doc,
This page took 0.028303 seconds and 4 git commands to generate.