x86: Use correct .reg-xstate section size
[deliverable/binutils-gdb.git] / gdb / command.h
index 1d63d2bae3204899a6ed0d81c98277a20b6e2cd8..956eeaa224ec3f7d125ddf8aa10bd7ce7506f5a3 100644 (file)
@@ -1,6 +1,6 @@
 /* Header file for command creation.
 
-   Copyright (C) 1986-2014 Free Software Foundation, Inc.
+   Copyright (C) 1986-2015 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
@@ -123,7 +123,7 @@ extern int valid_user_defined_cmd_name_p (const char *name);
 
 extern struct cmd_list_element *add_cmd (const char *, enum command_class,
                                         cmd_cfunc_ftype *fun,
-                                        char *,
+                                        const char *,
                                         struct cmd_list_element **);
 
 extern struct cmd_list_element *add_alias_cmd (const char *, const char *,
@@ -132,17 +132,17 @@ extern struct cmd_list_element *add_alias_cmd (const char *, const char *,
 
 extern struct cmd_list_element *add_prefix_cmd (const char *, enum command_class,
                                                cmd_cfunc_ftype *fun,
-                                               char *,
+                                               const char *,
                                                struct cmd_list_element **,
-                                               char *, int,
+                                               const char *, int,
                                                struct cmd_list_element **);
 
 extern struct cmd_list_element *add_abbrev_prefix_cmd (const char *,
                                                       enum command_class,
                                                       cmd_cfunc_ftype *fun,
-                                                      char *,
+                                                      const char *,
                                                       struct cmd_list_element
-                                                      **, char *, int,
+                                                      **, const char *, int,
                                                       struct cmd_list_element
                                                       **);
 
@@ -159,8 +159,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,
@@ -205,16 +213,17 @@ extern int lookup_cmd_composition (const char *text,
 
 extern struct cmd_list_element *add_com (const char *, enum command_class,
                                         cmd_cfunc_ftype *fun,
-                                        char *);
+                                        const char *);
 
 extern struct cmd_list_element *add_com_alias (const char *, const char *,
                                               enum command_class, int);
 
 extern struct cmd_list_element *add_info (const char *,
                                          cmd_cfunc_ftype *fun,
-                                         char *);
+                                         const char *);
 
-extern struct cmd_list_element *add_info_alias (const char *, char *, int);
+extern struct cmd_list_element *add_info_alias (const char *, const char *,
+                                               int);
 
 extern VEC (char_ptr) *complete_on_cmdlist (struct cmd_list_element *,
                                            const char *, const char *, int);
@@ -224,7 +233,7 @@ extern VEC (char_ptr) *complete_on_enum (const char *const *enumlist,
 
 /* Functions that implement commands about CLI commands.  */
 
-extern void help_list (struct cmd_list_element *, char *,
+extern void help_list (struct cmd_list_element *, const char *,
                       enum command_class, struct ui_file *);
 
 /* Method for show a set/show variable's VALUE on FILE.  If this
@@ -374,7 +383,7 @@ extern void
 
 /* Do a "show" command for each thing on a command list.  */
 
-extern void cmd_show_list (struct cmd_list_element *, int, char *);
+extern void cmd_show_list (struct cmd_list_element *, int, const char *);
 
 /* Used everywhere whenever at least one parameter is required and
    none is specified.  */
This page took 0.026047 seconds and 4 git commands to generate.