From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95124 invoked by alias); 22 Oct 2015 07:21:54 -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 95113 invoked by uid 89); 22 Oct 2015 07:21:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 22 Oct 2015 07:21:52 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZpABu-0004ij-RK for gdb-patches@sourceware.org; Thu, 22 Oct 2015 09:21:38 +0200 Received: from ts18-a158.moscow.dial.rol.ru ([195.239.5.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2015 09:21:38 +0200 Received: from vladimir.prus by ts18-a158.moscow.dial.rol.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Oct 2015 09:21:38 +0200 To: gdb-patches@sourceware.org From: Vladimir Prus Subject: Re: [PATCH 4/4] GDB/MI: inferior standard I/O redirection Date: Thu, 22 Oct 2015 10:55:00 -0000 Message-ID: References: <1444045617-14526-1-git-send-email-crosa@redhat.com> <1444045617-14526-5-git-send-email-crosa@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <1444045617-14526-5-git-send-email-crosa@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00434.txt.bz2 Cleber, thanks for the patch! And thanks Pedro for the CC. On 05-Oct-15 2:46 PM, Cleber Rosa wrote: > This introduces the following MI commands: > > * -inferior-stdin-set > * -inferior-stdin-show > * -inferior-stdout-set > * -inferior-stdout-show > * -inferior-stderr-set > * -inferior-stderr-show > > Which are the MI version of the inferior standard I/O redirection > commands: > > * set inferior-stdin (aliased as stdin) > * show inferior-stdin > * set inferior-stdout (aliased as stdout) > * show inferior-stdout > * set inferior-stderr (aliased as stderr) These additions look non-controversial to me. > +@subheading The @code{-inferior-stdin-set} Command > +@findex -inferior-stdin-set > + > +@subheading Synopsis > + > +@smallexample > +-inferior-stdin-set /tmp/answers > +@end smallexample > + > +Set standard input for future runs of the program being debugged. This documentation does not specify what the parameter to the command is. Is this something you can write explicitly, so that one does not have to consult CLI docs? It seems you need a filepath, in which case writing +@smallexample +-inferior-stdin-set +@end smallexample might be clearer (I don't remember texinfo syntax for replaceable part). Do we want to support passing integer file descriptor here as well? Thanks, Volodya -- Vladimir Prus http://vladimirprus.com