From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98854 invoked by alias); 11 Jan 2017 20:24:45 -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 98802 invoked by uid 89); 11 Jan 2017 20:24:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= 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; Wed, 11 Jan 2017 20:24:38 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 3F7AB63E0F; Wed, 11 Jan 2017 20:24:38 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v0BKOXC7004672; Wed, 11 Jan 2017 15:24:37 -0500 Subject: Re: [RFA] candidates for ambiguous command in upper case To: Yao Qi 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> Cc: Simon Marchi , Jerome Guitton , gdb-patches@sourceware.org From: Pedro Alves Message-ID: Date: Wed, 11 Jan 2017 20:24: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: <20170111172550.GL9518@E107787-LIN> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-01/txt/msg00196.txt.bz2 On 01/11/2017 05:25 PM, Yao Qi wrote: > On 17-01-10 17:00:28, Pedro Alves wrote: >> On 01/10/2017 03:28 PM, Simon Marchi wrote: >>> On 2017-01-10 10:19, Jerome Guitton wrote: >>>> Yao Qi (qiyaoltc@gmail.com): >>>> >>>>> IMO, there is nothing wrong. There is no command starts from "EX". >>>> >>>> This is a bit weird to accept upper-case EXEC-FIL then... isn't it? >>>> >>>> (gdb) exec-fil >>>> No executable file now. >>>> (gdb) EXEC-FIL >>>> No executable file now. >>> >>> I agree that if GDB accepts commands in upper case, the ambiguous >>> command message should work accordingly. >> >> Agreed. I thought that the manual mentioned that gdb accepts >> commands in either case, but I can't find it now. >> > > I don't find gdb accepts commands in either case in the manual, and > I am surprised that gdb does so. Actually, gdb does so since 1988! I guess I probably discovered it by typing some command with Caps Lock on by accident, and seeing it work. 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. Thanks, Pedro Alves