aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-06-08 00:52:56 +0000
committerAndrew Cagney <cagney@redhat.com>2000-06-08 00:52:56 +0000
commit53904c9e670da0974aebfb6cdaa30e9c55876508 (patch)
tree05ca51eb0b7848a88993468318da40d301819565 /gdb/command.h
parent150f24a284293f28cc74a5469fb5d4b242336154 (diff)
downloadgdb-53904c9e670da0974aebfb6cdaa30e9c55876508.zip
gdb-53904c9e670da0974aebfb6cdaa30e9c55876508.tar.gz
gdb-53904c9e670da0974aebfb6cdaa30e9c55876508.tar.bz2
Change signature of function add_set_enum_cmd() so that it uses
constant character pointers. Update everything. As a consequence fix infrun's follow-fork plugging a small memory leak.
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/command.h b/gdb/command.h
index f6c46e9..7f5a6b2 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -199,7 +199,7 @@ struct cmd_list_element
var_types var_type;
/* Pointer to NULL terminated list of enumerated values (like argv). */
- char **enums;
+ const char **enums;
/* Pointer to command strings of user-defined commands */
struct command_line *user_commands;
@@ -274,7 +274,7 @@ extern struct cmd_list_element *add_info_alias (char *, char *, int);
extern char **complete_on_cmdlist (struct cmd_list_element *, char *, char *);
-extern char **complete_on_enum (char **enumlist, char *, char *);
+extern char **complete_on_enum (const char *enumlist[], char *, char *);
extern void delete_cmd (char *, struct cmd_list_element **);
@@ -294,8 +294,8 @@ extern struct cmd_list_element *add_set_cmd (char *name, enum
extern struct cmd_list_element *add_set_enum_cmd (char *name,
enum command_class class,
- char *enumlist[],
- char **var,
+ const char *enumlist[],
+ const char **var,
char *doc,
struct cmd_list_element **list);