From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24983 invoked by alias); 12 Jan 2017 16:37:20 -0000 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 Received: (qmail 24970 invoked by uid 89); 12 Jan 2017 16:37:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Commands, Hx-languages-length:1674, abbreviations, watch X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jan 2017 16:37:09 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4791B8FCE8; Thu, 12 Jan 2017 16:37:09 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v0CGb4gD026302; Thu, 12 Jan 2017 11:37:04 -0500 Subject: Re: [RFA] candidates for ambiguous command in upper case To: Jerome Guitton References: <1484058324-5368-1-git-send-email-guitton@adacore.com> <20170110150731.GH9518@E107787-LIN> <20170110151944.GD27546@adacore.com> <2c7e674b-e827-f433-cbaf-a3d1a20cba80@redhat.com> <20170111172550.GL9518@E107787-LIN> <20170112101854.GL27546@adacore.com> Cc: Yao Qi , Simon Marchi , gdb-patches@sourceware.org From: Pedro Alves Message-ID: <85ecb095-a990-6f15-4fe9-5addffb3a5d0@redhat.com> Date: Thu, 12 Jan 2017 16:37:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170112101854.GL27546@adacore.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-01/txt/msg00244.txt.bz2 On 01/12/2017 10:18 AM, Jerome Guitton wrote: > Pedro Alves (palves@redhat.com): > >> I can only guess on original motivation -- maybe to make GDB usable >> with uppercase-only terminals? Those were common at some point in >> the past. I think Linux's terminal subsystem might still have >> support for those. But then symbol searching was not case-insensitive, >> ("set case-sensitive off" support was only added much later), so I >> can't quite imagine how that'd be much usable. > > I'm not sure of the original motivation; but I guess that if it has > been there for thirty years it is now considered as the standard > interface by a few users. Dunno, if it doesn't make sense, and nobody uses it, then it's one less thing to maintain and test. We don't treat command options as case insensitive. E.g.: (gdb) watch -locaTION *main No symbol "locaTION" in current context. (gdb) p /x obj $1 = 0x4007a0 (gdb) p /X obj No symbol "X" in current context. Etc. If we removed support for case insensitive commands, then it may open up interesting uses. > In any case, even if we decide to change that, consistency would be > good, at least for CLI; the same policy for casing should apply in all > cases of completion. > > Documenting it in the user manual would be good indeed; I'm not sure > where the proper place would be though. The place where I had expected to find it was where we talk about unambiguous command abbreviations. I.e., the very first thing the manual talks about, once GDB is up and running: https://sourceware.org/gdb/current/onlinedocs/gdb/Commands.html#Commands Thanks, Pedro Alves