From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16643 invoked by alias); 18 Sep 2012 19:44:07 -0000 Received: (qmail 16634 invoked by uid 22791); 18 Sep 2012 19:44:06 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Sep 2012 19:43:53 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8IJhogG022999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Sep 2012 15:43:50 -0400 Received: from psique (ovpn-113-44.phx2.redhat.com [10.3.113.44]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q8IJhlsA025155; Tue, 18 Sep 2012 15:43:48 -0400 From: Sergio Durigan Junior To: Jan Engelhardt Cc: gdb-patches@sourceware.org Subject: Make "j" an alias of "jump" [was: Re: "j" is now an ambiguous command] References: X-URL: http://www.redhat.com Date: Tue, 18 Sep 2012 19:44:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes 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: 2012-09/txt/msg00378.txt.bz2 On Saturday, September 15 2012, Jan Engelhardt wrote: > Between gdb-7.3 and 7.4.50.20120603, gdb has gained the two commands > "jit-reader-load" and "jit-reader-unload". > This causes "j", previously used as a shortcut for "jump", to have > become ambiguous. I would ask for "j" to be recognized again, similar to > how "b" is synonymous with "break" despite the presence of other b* > commands. > > (gdb) j 1762 > Ambiguous command "j 1762": jit-reader-load, jit-reader-unload, jump. Thanks for the report. I agree that "jump" is a command more used than the "jit*" commands. The following patch fixes the issue. Ok to apply? -- Sergio gdb/ChangeLog: 2012-09-18 Sergio Durigan Junior * infcmd.c (_initialize_infcmd): Register `j' as an alias for `jump'. gdb/doc/ChangeLog: 2012-09-18 Sergio Durigan Junior * gdb.texinfo (jump): Mention new alias `j' for `jump'. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index cd4513b..ddcbbad 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -15495,8 +15495,11 @@ an address of your own choosing, with the following commands: @table @code @kindex jump +@kindex j @r{(@code{jump})} @item jump @var{linespec} +@itemx j @var{linespec} @itemx jump @var{location} +@itemx j @var{location} Resume execution at line @var{linespec} or at address given by @var{location}. Execution stops again immediately if there is a breakpoint there. @xref{Specify Location}, for a description of the diff --git a/gdb/infcmd.c b/gdb/infcmd.c index cce624e..fd035df 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -3104,6 +3104,7 @@ Usage: jump \n\ Give as argument either LINENUM or *ADDR, where ADDR is an expression\n\ for an address to start at.")); set_cmd_completer (c, location_completer); + add_com_alias ("j", "jump", class_run, 1); if (xdb_commands) {