diff options
author | Doug Evans <dje@google.com> | 2011-11-15 05:06:35 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-11-15 05:06:35 +0000 |
commit | ed59ded5ebf4f5eb5014612020c88ebd27f0b819 (patch) | |
tree | 364c1a0084e846164c80cd0d339afcb9a5e7e209 /gdb/cli/cli-cmds.c | |
parent | 81f5d455defd839446d1f1b51ed84f170b47a5c1 (diff) | |
download | gdb-ed59ded5ebf4f5eb5014612020c88ebd27f0b819.zip gdb-ed59ded5ebf4f5eb5014612020c88ebd27f0b819.tar.gz gdb-ed59ded5ebf4f5eb5014612020c88ebd27f0b819.tar.bz2 |
Make "!" an alias for "shell".
* NEWS: Add mention.
* cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
adding "!" command, always add it.
* cli/cli-decode.c (find_command_name_length): Recognize "!" as a
command of length one.
doc/
* gdb.texinfo (Shell Commands): Document "!".
testsuite/
* gdb.base/shell.exp: New file.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r-- | gdb/cli/cli-cmds.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 94328c4..d75a6c0 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1825,14 +1825,7 @@ Two arguments (separated by a comma) are taken as a range of memory to dump,\n\ if (xdb_commands) add_com_alias ("va", "disassemble", class_xdb, 0); - /* NOTE: cagney/2000-03-20: Being able to enter ``(gdb) !ls'' would - be a really useful feature. Unfortunately, the below wont do - this. Instead it adds support for the form ``(gdb) ! ls'' - (i.e. the space is required). If the ``!'' command below is - added the complains about no ``!'' command would be replaced by - complains about how the ``!'' command is broken :-) */ - if (xdb_commands) - add_com_alias ("!", "shell", class_support, 0); + add_com_alias ("!", "shell", class_support, 0); c = add_com ("make", class_support, make_command, _("\ Run the ``make'' program using the rest of the line as arguments.")); |