aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-04-19 13:45:00 +0200
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-04-19 14:02:33 +0200
commitd563b953142db796f61425a1a300f0feddcdcd55 (patch)
treefabaa37606bb29efa4bd3e0e53d1b47d681fd9a2 /gdb/cli
parent5ce032bdfc60a8f44f6307b2297384c852100f95 (diff)
downloadgdb-d563b953142db796f61425a1a300f0feddcdcd55.zip
gdb-d563b953142db796f61425a1a300f0feddcdcd55.tar.gz
gdb-d563b953142db796f61425a1a300f0feddcdcd55.tar.bz2
OBVIOUS move add_comm_alias "!" <=> "shell" near the add_com "shell"
gdb/ChangeLog 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias close to the add_com "shell".
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 8480ba3..5f3b973 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -1831,6 +1831,8 @@ Execute the rest of the line as a shell command.\n\
With no arguments, run an inferior shell."));
set_cmd_completer (c, filename_completer);
+ add_com_alias ("!", "shell", class_support, 0);
+
c = add_com ("edit", class_files, edit_command, _("\
Edit specified file or function.\n\
With no argument, edits file containing most recent line listed.\n\
@@ -1895,8 +1897,6 @@ So, for example, if you want to disassemble function bar in file foo.c\n\
you must type \"disassemble 'foo.c'::bar\" and not \"disassemble foo.c:bar\"."));
set_cmd_completer (c, location_completer);
- 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."));
set_cmd_completer (c, filename_completer);