aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c2
-rw-r--r--gdb/cli/cli-decode.c4
-rw-r--r--gdb/cli/cli-decode.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 9c118e1..5eeab41 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -201,7 +201,7 @@ static const char script_ext_off[] = "off";
static const char script_ext_soft[] = "soft";
static const char script_ext_strict[] = "strict";
-static const char *script_ext_enums[] = {
+static const char *const script_ext_enums[] = {
script_ext_off,
script_ext_soft,
script_ext_strict,
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index f168ff1..da5f917 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -412,7 +412,7 @@ add_setshow_cmd_full (char *name,
void
add_setshow_enum_cmd (char *name,
enum command_class class,
- const char *enumlist[],
+ const char *const *enumlist,
const char **var,
const char *set_doc,
const char *show_doc,
@@ -1733,7 +1733,7 @@ complete_on_cmdlist (struct cmd_list_element *list, char *text, char *word)
"oobar"; if WORD is "baz/foo", return "baz/foobar". */
char **
-complete_on_enum (const char *enumlist[],
+complete_on_enum (const char *const *enumlist,
char *text,
char *word)
{
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h
index 946f96d..6027123 100644
--- a/gdb/cli/cli-decode.h
+++ b/gdb/cli/cli-decode.h
@@ -189,7 +189,7 @@ struct cmd_list_element
/* Pointer to NULL terminated list of enumerated values (like
argv). */
- const char **enums;
+ const char *const *enums;
/* Pointer to command strings of user-defined commands */
struct command_line *user_commands;