From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31170 invoked by alias); 5 Aug 2011 10:25:36 -0000 Received: (qmail 31147 invoked by uid 22791); 5 Aug 2011 10:25:36 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_BT,TW_TD X-Spam-Check-By: sourceware.org Received: from mail-ew0-f41.google.com (HELO mail-ew0-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Aug 2011 10:24:55 +0000 Received: by ewy9 with SMTP id 9so1566981ewy.0 for ; Fri, 05 Aug 2011 03:24:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.4.82 with SMTP id 18mr652956ebq.64.1312539894459; Fri, 05 Aug 2011 03:24:54 -0700 (PDT) Received: by 10.213.16.210 with HTTP; Fri, 5 Aug 2011 03:24:54 -0700 (PDT) In-Reply-To: <201108051056.59135.pedro@codesourcery.com> References: <20110805082947.GA5020@host1.jankratochvil.net> <201108051056.59135.pedro@codesourcery.com> Date: Fri, 05 Aug 2011 10:25:00 -0000 Message-ID: Subject: Re: [PATCH] An implementation of pipe to make I/O communication between gdb and shell. From: Abhijit Halder To: Pedro Alves Cc: Jan Kratochvil , gdb-patches@sourceware.org, Sergio Durigan Junior , Tom Tromey Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2011-08/txt/msg00102.txt.bz2 On Fri, Aug 5, 2011 at 3:26 PM, Pedro Alves wrote: > On Friday 05 August 2011 10:41:09, Abhijit Halder wrote: >> I am not sure whether this restriction is meaningful. Ideally we >> should not support any alpha-numeric character as a delimiter just >> because of readability purpose. e.g. >> (gdb) pipe dthread apply all btdvim - >> Here d is delimiter. I don't think the above one is acceptable. Please >> suggest me if we simply can put a restriction of not using any >> alpha-numeric character as delimiter and that will do. >> Secondly I believe by FOO you meant a single character and not a >> string. Between delimiter and command there is no restriction of >> having any white-space. > > Speaking for myself, when I wrote PIPE and FOO before, I really > meant a string (with no whitespace), not a single character. > > In your example above: > > =A0(gdb) pipe dthread apply all btdvim - > > the delimiter would be `dthread'. =A0I see no reason to > require it to be a single character. > Just a thought. Can't using a single character make the life simple? That will surely reduce the options for delimiter. But as you said, like sed this can be used. > -- > Pedro Alves >