From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 957 invoked by alias); 5 Aug 2011 10:33:16 -0000 Received: (qmail 949 invoked by uid 22791); 5 Aug 2011 10:33:16 -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:32:41 +0000 Received: by ewy9 with SMTP id 9so1569540ewy.0 for ; Fri, 05 Aug 2011 03:32:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.3.213 with SMTP id 21mr653389ebo.26.1312540360575; Fri, 05 Aug 2011 03:32:40 -0700 (PDT) Received: by 10.213.16.210 with HTTP; Fri, 5 Aug 2011 03:32:40 -0700 (PDT) In-Reply-To: References: <20110805082947.GA5020@host1.jankratochvil.net> <201108051056.59135.pedro@codesourcery.com> Date: Fri, 05 Aug 2011 10:33: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/msg00103.txt.bz2 On Fri, Aug 5, 2011 at 3:54 PM, Abhijit Halder wrote: > On Fri, Aug 5, 2011 at 3:26 PM, Pedro Alves wrot= e: >> 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? Just a bit clarification on my statement. If we use some string as delimiter, space has be used again as a delimiter between between two tokens. If someone use simply a single character as a delimiter, he has to provide a space between delimiters and commands. (gdb) pipe | > That will surely reduce the options for delimiter. But as you said, > like sed this can be used. >> -- >> Pedro Alves >> >