diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-06-08 00:52:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-06-08 00:52:56 +0000 |
commit | 286bbcdc9f0a6e936b30b56d21975e48a31536dd (patch) | |
tree | 328eefe33fadbc5c9ff0853040b2c5d2e030dc51 /gdb/command.h | |
parent | 373c7243e15fafb40a43ba0bccf2761b1b759c38 (diff) | |
download | gdb-286bbcdc9f0a6e936b30b56d21975e48a31536dd.tar.gz |
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.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/command.h b/gdb/command.h index f6c46e96080..7f5a6b2ae2e 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); |