From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30509 invoked by alias); 8 Jul 2009 13:18:24 -0000 Received: (qmail 30498 invoked by uid 22791); 8 Jul 2009 13:18:23 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jul 2009 13:18:16 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.2/jtpda-5.5pre1) with ESMTP id n68DICcj089188 for ; Wed, 8 Jul 2009 15:18:12 +0200 (CEST) Received: from mailserver.u-strasbg.fr (ms3.u-strasbg.fr [IPv6:2001:660:2402:d::12]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id n68DICDn034351 for ; Wed, 8 Jul 2009 15:18:12 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) Received: from d620muller (www-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id n68DICiG025714 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 8 Jul 2009 15:18:12 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) From: "Pierre Muller" To: Subject: [RFA] Add "inf" alias for "info" Date: Wed, 08 Jul 2009 13:18:00 -0000 Message-ID: <000001c9ffce$8b9b81e0$a2d285a0$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00234.txt.bz2 I was used to use (gdb) inf reg to get a listing of registers, but since the new "inferior" command appeared, I now get this: (gdb) inf reg Ambiguous command "inf reg": inferior, info. The proposed patch add "inf" as an alias of "info", saving the hassle of retyping "info" after the message above. I think that "inferior" is a far less used command and it is only useful for targets supporting multiple inferiors... Is this patch OK? Pierre Muller Pascal language support maintainer for GDB 2009-07-08 Pierre Muller * cli/cli-cmds.c (init_cli_cmds): Add "inf" alias for "info" command. Index: cli/cli-cmds.c =================================================================== RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v retrieving revision 1.90 diff -u -p -r1.90 cli-cmds.c --- cli/cli-cmds.c 2 Jul 2009 21:57:28 -0000 1.90 +++ cli/cli-cmds.c 8 Jul 2009 13:15:11 -0000 @@ -1341,6 +1341,7 @@ Without an argument, history expansion i Generic command for showing things about the program being debugged."), &infolist, "info ", 0, &cmdlist); add_com_alias ("i", "info", class_info, 1); + add_com_alias ("inf", "info", class_info, 1); add_com ("complete", class_obscure, complete_command, _("List the completions for the rest of the line as a command.")); ~