From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121743 invoked by alias); 17 Apr 2019 08:14:06 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 121735 invoked by uid 89); 17 Apr 2019 08:14:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:902, reaction, H*M:lan, confined 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, 17 Apr 2019 08:14:05 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4108730BC644; Wed, 17 Apr 2019 08:14:04 +0000 (UTC) Received: from f29-4.lan (ovpn-116-111.phx2.redhat.com [10.3.116.111]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 165B660C61; Wed, 17 Apr 2019 08:14:03 +0000 (UTC) Date: Wed, 17 Apr 2019 08:14:00 -0000 From: Kevin Buettner To: gdb@sourceware.org Cc: Philippe Waroquiers Subject: Re: / (slash) command : fast way to temporarily change setting(s) to run a command Message-ID: <20190417011403.6072c4b3@f29-4.lan> In-Reply-To: <1555313564.1473.2.camel@skynet.be> References: <1555313564.1473.2.camel@skynet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00012.txt.bz2 My first reaction to this proposal was that '/' is already used in some commands to modify their behavior. E.g. "print", "display", and "x" all use /FMT to change the way that data is formatted. That said, '/' seems to be used in only a handful of commands. It may be that its use is confined to the ones already mentioned. I see that the "interrupt" command allows the use of -a to modify its behavior. Most commands have no modifiers at all. I don't have a serious objection to Philippe's proposal, but I do think that we ought to consider whether use of '/' in this context might be confusing to the user. Might some other character or command name be less confusing? I don't know the answer to this, but I do think it's something which should be pondered before making this proposal a part of GDB's CLI. Kevin