From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90385 invoked by alias); 22 Apr 2019 20:45:03 -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 90351 invoked by uid 89); 22 Apr 2019 20:45:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-HELO:sk:mail-io, conveniently, H*c:alternative X-HELO: mail-io1-f67.google.com Received: from mail-io1-f67.google.com (HELO mail-io1-f67.google.com) (209.85.166.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Apr 2019 20:45:01 +0000 Received: by mail-io1-f67.google.com with SMTP id m188so9562430ioa.9 for ; Mon, 22 Apr 2019 13:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lhyog/wftwRJxqkAYoZ/a101ZVL9qU4R/xq6Nh2RE2w=; b=iDyo/ifI0pZC5ZjUm+nTVp0pkR+/fyCAKUoLajp9G1aame7c77aF8F4zVqI0l78IKD 1a5JnE2Dwv9jSobIJ7o3zofUsBC/odNWMdlBTnLZFAA7Q5hDOhoTCPYMQV/IOL/mqnIi rbwjyEkg0KRG6c6amw+5ZrvJtROKeM6r4B7c5f6bK4vdTlfkZja3b3Ki5Z727n99QH0F u2PAQlM2AgYjAPIuEUPgJHAhCGoyMzVNI1EGRZZ2LB4VpYAU/qfus5h25jl+d/2bqw2j hcFQgideJQoAfsXrsZXzjafQiOjLgkmRzPzWSm71dwon51t0B6MgT2T5GPuB1ihZVzlw mNjA== MIME-Version: 1.0 References: <20190420212153.30934-1-philippe.waroquiers@skynet.be> In-Reply-To: <20190420212153.30934-1-philippe.waroquiers@skynet.be> From: Abhijit Halder Date: Mon, 22 Apr 2019 20:45:00 -0000 Message-ID: Subject: Re: [RFA 0/4] Implement | (pipe) command. To: Philippe Waroquiers Cc: "gdb-patches@sourceware.org ml" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00426.txt.bz2 Hi Philippe, If I see it correctly, the syntax of the command is pipe | If the gdb command contains '|' the above syntax will be a problem. I suggest below syntax pipe Here the advantage is the delimiter can be anything and conveniently be chosen by the user. I made a similar attempt few years back. https://sourceware.org/ml/gdb-patches/2012-01/msg00098.html This you can take this as a reference. Thanks, Abhijit Halder On Sun, Apr 21, 2019 at 2:52 AM Philippe Waroquiers < philippe.waroquiers@skynet.be> wrote: > This patch series adds the pipe command, that allows to send the output > of a GDB command to a shell command. > > The first patch allows a command to repeat a previous command. > Currently only used by the pipe command added in this series, but > the idea is that the slash command will also use this feature to > repeat a previous command. > > >