diff options
author | Doug Evans <dje@google.com> | 2011-10-09 22:21:43 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-10-09 22:21:43 +0000 |
commit | 5a56e9c5e9a817598264d329c0f7936982683cf3 (patch) | |
tree | b098197d8cf4b75931db58241388806c7ed8be9e /gdb/command.h | |
parent | 509f0fd9410d9394d0a6e2fa4ef80e08de5598b5 (diff) | |
download | gdb-5a56e9c5e9a817598264d329c0f7936982683cf3.zip gdb-5a56e9c5e9a817598264d329c0f7936982683cf3.tar.gz gdb-5a56e9c5e9a817598264d329c0f7936982683cf3.tar.bz2 |
Add new "alias" command.
* NEWS: Mention new command.
* command.h (valid_user_defined_cmd_name_p): Declare.
* defs.h (make_cleanup_dyn_string_delete): Declare.
* utils.c: #include "dyn-string.h".
(do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
* cli/cli-cmds.c: #include "dyn-string.h".
(argv_to_dyn_string, valid_command_p, alias_command): New functions.
(init_cli_cmds): Add new command.
* cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
doc/
* gdb.texinfo (Extending GDB): Document alias command.
testsuite/
* gdb.base/alias.exp: Add tests for alias command.
Diffstat (limited to 'gdb/command.h')
-rw-r--r-- | gdb/command.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/command.h b/gdb/command.h index 0e2547e..04cb751 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -106,6 +106,8 @@ struct cmd_list_element; /* Forward-declarations of the entry-points of cli/cli-decode.c. */ +extern int valid_user_defined_cmd_name_p (const char *name); + extern struct cmd_list_element *add_cmd (char *, enum command_class, void (*fun) (char *, int), char *, struct cmd_list_element **); |