summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-21 07:15:49 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-21 07:15:49 +0000
commit9d0991f4f94dbf7b6890aac93a0b808163e238c2 (patch)
treef0163c072233bab2ea88b9ad2fac8d88f8f09d56 /gdb/cli
parent6c403c6b569cb376577de02eacd0c5fce436ecbd (diff)
downloadgdb-9d0991f4f94dbf7b6890aac93a0b808163e238c2.tar.gz
2005-02-21 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_set_enum_cmd): Delete function. (deprecated_add_show_from_set): Delete function. * command.h (add_set_enum_cmd): Delete declaration. (deprecated_add_show_from_set): Delete declaration. * cli/cli-decode.h (add_set_enum_cmd): Delete declaration. (deprecated_add_show_from_set): Delete declaration. * arm-tdep.c (_initialize_arm_tdep): Update comment. * kod.c (kod_set_os): Simplify. * infrun.c (set_schedlock_func): Simplify. * cli/cli-dump.c (add_dump_command): Update comment.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-decode.c50
-rw-r--r--gdb/cli/cli-decode.h10
-rw-r--r--gdb/cli/cli-dump.c2
3 files changed, 1 insertions, 61 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index f2a533ce4c4..33a045ac3b7 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -378,29 +378,6 @@ add_set_cmd (char *name,
return add_set_or_show_cmd (name, set_cmd, class, var_type, var, doc, list);
}
-/* Add element named NAME to command list LIST (the list for set
- or some sublist thereof).
- CLASS is as in add_cmd.
- ENUMLIST is a list of strings which may follow NAME.
- VAR is address of the variable which will contain the matching string
- (from ENUMLIST).
- DOC is the documentation string. */
-
-struct cmd_list_element *
-add_set_enum_cmd (char *name,
- enum command_class class,
- const char *enumlist[],
- const char **var,
- char *doc,
- struct cmd_list_element **list)
-{
- struct cmd_list_element *c
- = add_set_cmd (name, class, var_enum, var, doc, list);
- c->enums = enumlist;
-
- return c;
-}
-
/* Add element named NAME to command list LIST (the list for set or
some sublist thereof). CLASS is as in add_cmd. ENUMLIST is a list
of strings which may follow NAME. VAR is address of the variable
@@ -617,33 +594,6 @@ add_setshow_zinteger_cmd (char *name, enum command_class class,
NULL, NULL);
}
-/* Where SETCMD has already been added, add the corresponding show
- command to LIST and return a pointer to the added command (not
- necessarily the head of LIST). */
-/* NOTE: cagney/2002-03-17: The original version of
- deprecated_add_show_from_set used memcpy() to clone `set' into
- `show'. This meant that in addition to all the needed fields (var,
- name, et.al.) some unnecessary fields were copied (namely the
- callback function). The function explictly copies relevant fields.
- For a `set' and `show' command to share the same callback, the
- caller must set both explicitly. */
-struct cmd_list_element *
-deprecated_add_show_from_set (struct cmd_list_element *setcmd,
- struct cmd_list_element **list)
-{
- char *doc;
- const static char setstring[] = "Set ";
-
- /* Create a doc string by replacing "Set " at the start of the
- `set'' command's doco with "Show ". */
- gdb_assert (strncmp (setcmd->doc, setstring, sizeof (setstring) - 1) == 0);
- doc = concat ("Show ", setcmd->doc + sizeof (setstring) - 1, NULL);
-
- /* Insert the basic command. */
- return add_set_or_show_cmd (setcmd->name, show_cmd, setcmd->class,
- setcmd->var_type, setcmd->var, doc, list);
-}
-
/* Remove the command named NAME from the command list. */
void
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h
index 9ffe2c5c639..261f8c7b639 100644
--- a/gdb/cli/cli-decode.h
+++ b/gdb/cli/cli-decode.h
@@ -292,16 +292,6 @@ extern struct cmd_list_element *add_set_cmd (char *name, enum
char *doc,
struct cmd_list_element **list);
-extern struct cmd_list_element *add_set_enum_cmd (char *name,
- enum command_class class,
- const char *enumlist[],
- const char **var,
- char *doc,
- struct cmd_list_element **list);
-
-extern struct cmd_list_element *deprecated_add_show_from_set (struct cmd_list_element *,
- struct cmd_list_element **);
-
/* Functions that implement commands about CLI commands. */
extern void help_cmd (char *, struct ui_file *);
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index e2323d63b00..295e2eb84ca 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -429,7 +429,7 @@ add_dump_command (char *name, void (*func) (char *args, char *mode),
c->func = call_dump_func;
/* Replace "Dump " at start of docstring with "Append " (borrowed
- from deprecated_add_show_from_set). */
+ from [deleted] deprecated_add_show_from_set). */
if ( c->doc[0] == 'W'
&& c->doc[1] == 'r'
&& c->doc[2] == 'i'