From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5187 invoked by alias); 30 Aug 2011 14:49:12 -0000 Received: (qmail 5170 invoked by uid 22791); 30 Aug 2011 14:49:09 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Aug 2011 14:48:45 +0000 Received: by wyi11 with SMTP id 11so5509952wyi.0 for ; Tue, 30 Aug 2011 07:48:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.221.102 with SMTP id q80mr5023336wep.37.1314715721461; Tue, 30 Aug 2011 07:48:41 -0700 (PDT) Received: by 10.216.22.75 with HTTP; Tue, 30 Aug 2011 07:48:41 -0700 (PDT) In-Reply-To: References: <201108301527.22683.pedro@codesourcery.com> Date: Tue, 30 Aug 2011 14:49:00 -0000 Message-ID: Subject: Re: [PATCH][TEST-CASE][DOC] Implementation of pipe to pass GDB's command output to the shell. From: Abhijit Halder To: Pedro Alves Cc: Eli Zaretskii , gdb-patches@sourceware.org, sergiodj@redhat.com, jan.kratochvil@redhat.com, tromey@redhat.com 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/msg00604.txt.bz2 On Tue, Aug 30, 2011 at 8:01 PM, Abhijit Halder wrote: > On Tue, Aug 30, 2011 at 7:57 PM, Pedro Alves wro= te: >> On Tuesday 30 August 2011 14:58:02, Abhijit Halder wrote: >>> +@table @code >>> +@item pipe @var{args} >> >> I suggest writing this as something like: >> >> @item pipe @var{delim} @var{gdbcmd} @var{delim} @var{shellcmd} >> >> and then adjust the text a bit to refer to the variables by name. >> The syntax is more immediately obvious this way. >> >>> +The @var{args} consists of a delimiter followed by a @value{GDBN} comm= and, >>> +followed by the same delimiter and finally a shell command. =A0The del= imiter is a >>> +string of arbitrary length, containing no whitespace and no leading '-= ', acts >>> +as a separator between a @value{GDBN} command and a shell command. =A0= The shell >>> +command should be in compliance with the syntax of the default shell. >>> +@end table >> >> -- >> Pedro Alves >> > > Sure. I am going to change this. > Hi all, In gdb.texinfo file I have seen @cindex and @kindex markup. Someone please tell me the significance of them. Secondly, the example I have used is from a sample code written by me just for this purpose. This should not have any licensing issue I hope.