diff options
author | Tom Tromey <tromey@redhat.com> | 2008-12-10 01:05:16 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-12-10 01:05:16 +0000 |
commit | b05dcbb7f97fb8e8b1449a6bde96761b3cb3e39b (patch) | |
tree | 731f71fa9e267810d8f92e632d629c2d384460a8 /gdb/command.h | |
parent | 667f3338da4e4616a2e7d9085a02520a8da98c7f (diff) | |
download | gdb-b05dcbb7f97fb8e8b1449a6bde96761b3cb3e39b.zip gdb-b05dcbb7f97fb8e8b1449a6bde96761b3cb3e39b.tar.gz gdb-b05dcbb7f97fb8e8b1449a6bde96761b3cb3e39b.tar.bz2 |
gdb
PR gdb/1815:
* cli/cli-decode.c (delete_cmd): Forward declare.
(delete_cmd): Now static. Change return type. Remove command
from alias chain. Rewrite.
(add_cmd): Initialize new fields. Update cmd_pointer on all
aliases.
(add_alias_cmd): Put command on alias chain.
* command.h (delete_cmd): Don't declare.
* cli/cli-decode.h (delete_cmd): Don't declare.
(struct cmd_list_element) <aliases, alias_chain>: New fields.
gdb/testsuite
* gdb.base/commands.exp (redefine_backtrace_test): New proc.
Call it.
Diffstat (limited to 'gdb/command.h')
-rw-r--r-- | gdb/command.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/command.h b/gdb/command.h index cf09c01..5678c9e 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -193,8 +193,6 @@ extern char **complete_on_cmdlist (struct cmd_list_element *, char *, char *); extern char **complete_on_enum (const char *enumlist[], char *, char *); -extern void delete_cmd (char *, struct cmd_list_element **); - extern void help_cmd (char *, struct ui_file *); extern void help_list (struct cmd_list_element *, char *, |