From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37403 invoked by alias); 19 Jun 2019 00:34:56 -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 37394 invoked by uid 89); 19 Jun 2019 00:34:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:953, HContent-Transfer-Encoding:8bit X-HELO: mailsec117.isp.belgacom.be Received: from mailsec117.isp.belgacom.be (HELO mailsec117.isp.belgacom.be) (195.238.20.113) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Jun 2019 00:34:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1560904494; x=1592440494; h=message-id:subject:from:to:date:in-reply-to:references: mime-version:content-transfer-encoding; bh=UoSR8tQx5YeIS2ag6+hxYfoutAiDlH6YjeQZf5ZO0hw=; b=tKieCEp2S2GagaIAWM3gRKUWPI7EZijOjKDOPt0QP3yL6ZHf6jBeE8pb 9lgR+7Z57iMJW+2TNwXXlAkbvoKAYQ==; Received: from 96.218-128-109.adsl-dyn.isp.belgacom.be (HELO md) ([109.128.218.96]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 19 Jun 2019 02:34:52 +0200 Message-ID: <1560904492.8865.12.camel@skynet.be> Subject: Re: [PATCH v2 0/4] Introduce the "with" command From: Philippe Waroquiers To: Pedro Alves , gdb-patches@sourceware.org Date: Wed, 19 Jun 2019 00:34:00 -0000 In-Reply-To: <20190618003902.19805-1-palves@redhat.com> References: <20190618003902.19805-1-palves@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-06/txt/msg00367.txt.bz2 On Tue, 2019-06-18 at 01:38 +0100, Pedro Alves wrote: > ( See original discussion and prototype here: > https://sourceware.org/ml/gdb-patches/2019-05/msg00570.html ) > > (gdb) help with > Temporarily set SETTING to VALUE, run COMMAND, and restore SETTING. > Usage: with SETTING [VALUE] [-- COMMAND] > Usage: w SETTING [VALUE] [-- COMMAND] > With no COMMAND, repeats the last executed command. > SETTING is any setting settable with the "set" command. > E.g.: > with language pascal -- print obj > with print elements unlimited -- print obj > > More details in patch #4. > > New in v2: I played a little bit with this version, no bug encountered. 2 small nits in the error message for unknown 'with settings': (gdb) with xxxx yyyy -- echo coucou Undefined withcommand: "xxxx".  Try "help wit". (gdb)  (this message is produced by lookup_cmd, that is not too much 'with' aware it seems ...) Philippe