From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66699 invoked by alias); 3 May 2019 09:10:19 -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 66689 invoked by uid 89); 3 May 2019 09:10:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=max-depth, maxdepth, H*f:sk:d96f631, H*i:sk:d96f631 X-HELO: mailsec112.isp.belgacom.be Received: from mailsec112.isp.belgacom.be (HELO mailsec112.isp.belgacom.be) (195.238.20.108) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 03 May 2019 09:10:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1556874616; x=1588410616; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=hxn02TqIunabR/WDAtMjGTCq6ml7scoUyavyldQ3NV4=; b=bID5wqOnXWMoV3zXwpJhyitBrwmVdto33ZkBPzcWoQ787CE0flVe8EE7 c9UkBY4mJQEWU24syTEHxEcwuo5lSg==; Received: from 59.151-129-109.adsl-dyn.isp.belgacom.be (HELO md) ([109.129.151.59]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 03 May 2019 11:10:03 +0200 Message-ID: <1556874602.1511.10.camel@skynet.be> Subject: Re: / (slash) command : fast way to temporarily change setting(s) to run a command From: Philippe Waroquiers To: Pedro Alves , Kevin Buettner , gdb@sourceware.org Cc: John Baldwin Date: Fri, 03 May 2019 09:10:00 -0000 In-Reply-To: References: <1555313564.1473.2.camel@skynet.be> <20190417011403.6072c4b3@f29-4.lan> <0b0be35e-eecc-159d-5c39-ad58366be3cc@FreeBSD.org> <20190502201055.04bd9766@f29-4.lan> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00007.txt.bz2 On Fri, 2019-05-03 at 09:23 +0100, Pedro Alves wrote: > > > > I like this rationale for the global / command. > > > > I'd like to wait a bit longer before reviewing Philippe's patch, however. > > I know that one of my colleagues has some thoughts on the interface > > and I'd like to give him a little extra time to express them here... > > That was me. :-) See here: > > https://sourceware.org/ml/gdb-patches/2019-05/msg00002.html > > I'll follow up when I have a chance. Yesterday I fixed the > regressions that Philippe pointed at (fixes already in the branch) -- I > wanted to see if it was possible to get to a clean slate for better > experimenting / better ground for discussion. Thanks for this. Note that I have listed some points for the discussion in https://sourceware.org/ml/gdb-patches/2019-05/msg00019.html IMO, a (the?) major question I still have about keeping (or not) the "/" patch is for options that have a 'wide' impact. The "/" command avoids that this option has to be added as a specific argument to all the commands that are impacted directly or indirectly. An example is the new max-depth. As far as I understand, max-depth will at least impact: backtrace print frame info args ... (in fact all commands that are printing directly or indirectly some variables). With the "/" command, you have a way to influence all these commands. Otherwise, as far as I understand, an option --max-depth has to be added to all these commands. (or the user has to do set/launch command/reset). Philippe