]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/cli/cli-cmds.c
Add new "alias" command.
authorDoug Evans <dje@google.com>
Sun, 9 Oct 2011 22:21:43 +0000 (22:21 +0000)
committerDoug Evans <dje@google.com>
Sun, 9 Oct 2011 22:21:43 +0000 (22:21 +0000)
commit5a56e9c5e9a817598264d329c0f7936982683cf3
treeb098197d8cf4b75931db58241388806c7ed8be9e
parent509f0fd9410d9394d0a6e2fa4ef80e08de5598b5
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.
gdb/ChangeLog
gdb/NEWS
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/command.h
gdb/defs.h
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/alias.exp [new file with mode: 0644]
gdb/utils.c