diff options
author | Fernando Nasser <fnasser@redhat.com> | 2000-12-06 23:53:03 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2000-12-06 23:53:03 +0000 |
commit | 39647a4811a764cf75bd89752b7329f7f7632c47 (patch) | |
tree | 382150e05e420bafabad3c6e82821c11738acdb3 /gdb | |
parent | d4414c8a9182781e2fd3cdcd105b5f56a6e34b3d (diff) | |
download | gdb-39647a4811a764cf75bd89752b7329f7f7632c47.tar.gz |
2000-12-06 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c (add_abbrev_cmd): Reinstate. Add comment saying
that is not currently used.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cli/cli-decode.c | 31 |
2 files changed, 18 insertions, 18 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 161938ccdaa..83085b3dc65 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2000-12-06 Fernando Nasser <fnasser@redhat.com> + * cli/cli-decode.c (add_abbrev_cmd): Reinstate. Add comment saying + that is not currently used. + +2000-12-06 Fernando Nasser <fnasser@redhat.com> + * cli/cli-decode.c (lookup_cmd): Change disabled code into comment. 2000-12-06 Fernando Nasser <fnasser@redhat.com> diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 9bedba11180..2889efc36ac 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -109,6 +109,19 @@ add_cmd (char *name, enum command_class class, void (*fun) (char *, int), return c; } +/* Same as above, except that the abbrev_flag is set. */ +/* Note: Doesn't seem to be used anywhere currently. */ + +struct cmd_list_element * +add_abbrev_cmd (char *name, enum command_class class, void (*fun) (char *, int), + char *doc, struct cmd_list_element **list) +{ + register struct cmd_list_element *c + = add_cmd (name, class, fun, doc, list); + + c->abbrev_flag = 1; + return c; +} /* Deprecates a command CMD. REPLACEMENT is the name of the command which should be used in place @@ -133,24 +146,6 @@ deprecate_cmd (struct cmd_list_element *cmd, char *replacement) return cmd; } - -/* Same as above, except that the abbrev_flag is set. */ - -#if 0 /* Currently unused */ - -struct cmd_list_element * -add_abbrev_cmd (char *name, enum command_class class, void (*fun) (char *, int), - char *doc, struct cmd_list_element **list) -{ - register struct cmd_list_element *c - = add_cmd (name, class, fun, doc, list); - - c->abbrev_flag = 1; - return c; -} - -#endif - struct cmd_list_element * add_alias_cmd (char *name, char *oldname, enum command_class class, int abbrev_flag, struct cmd_list_element **list) |