diff options
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 8 | ||||
-rw-r--r-- | gdb/cli/cli-decode.c | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index be022d3..ccfedb2 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -207,14 +207,6 @@ show_command (const char *arg, int from_tty) cmd_show_list (showlist, from_tty, ""); } -/* A temporary non-const overload of show_command. */ - -static void -show_command (char *arg, int from_tty) -{ - cmd_show_list (showlist, from_tty, ""); -} - /* Provide documentation on command or list given by COMMAND. FROM_TTY is ignored. */ diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index e9baf38..0c55526 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -915,7 +915,7 @@ delete_cmd (const char *name, struct cmd_list_element **list, /* Add an element to the list of info subcommands. */ struct cmd_list_element * -add_info (const char *name, cmd_cfunc_ftype *fun, const char *doc) +add_info (const char *name, cmd_const_cfunc_ftype *fun, const char *doc) { return add_cmd (name, class_info, fun, doc, &infolist); } |