From patchwork Fri Apr 19 12:06:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Waroquiers X-Patchwork-Id: 32345 Received: (qmail 28740 invoked by alias); 19 Apr 2019 12:06:30 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 28731 invoked by uid 89); 19 Apr 2019 12:06:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mailsec113.isp.belgacom.be Received: from mailsec113.isp.belgacom.be (HELO mailsec113.isp.belgacom.be) (195.238.20.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Apr 2019 12:06:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1555675589; x=1587211589; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6zlti0byREudrlOjG+aQ2EMtdmPHtUp6+woXHAhFpPM=; b=YwcJAwssNDivKCnUImCcqpo2wkRmcppOY49zRYFFEizCu+YXc15J1uLt IATfQp7GRc/MdRvzrDOR+gp5F8FO+g==; Received: from 45.123-131-109.adsl-dyn.isp.belgacom.be (HELO md.home) ([109.131.123.45]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 19 Apr 2019 14:06:20 +0200 From: Philippe Waroquiers To: gdb-patches@sourceware.org Cc: Philippe Waroquiers Subject: [PUSHED] OBVIOUS move add_comm_alias "!" <=> "shell" near the add_com "shell" Date: Fri, 19 Apr 2019 14:06:16 +0200 Message-Id: <20190419120616.17534-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 X-IsSubscribed: yes gdb/ChangeLog 2019-04-19 Philippe Waroquiers * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias close to the add_com "shell". --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-cmds.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5dd740ca6a..ab65671ca8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-04-19 Philippe Waroquiers + + * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias + close to the add_com "shell". + 2019-04-18 Tom Tromey * process-stratum-target.h (class process_stratum_target) diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 8480ba355c..5f3b973f06 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);