From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9905 invoked by alias); 15 Aug 2013 19:14:53 -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 9890 invoked by uid 89); 15 Aug 2013 19:14:52 -0000 X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_SOFTFAIL autolearn=no version=3.3.2 Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 15 Aug 2013 19:14:46 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MRL00M0060QEN00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Thu, 15 Aug 2013 22:14:44 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRL00MOZ6SI40B0@a-mtaout22.012.net.il>; Thu, 15 Aug 2013 22:14:42 +0300 (IDT) Date: Thu, 15 Aug 2013 19:14:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 1/3] Detect GDB is in cygwin In-reply-to: <8738qaok76.fsf@fleche.redhat.com> To: Tom Tromey Cc: gdb-patches@sourceware.org, yao@codesourcery.com Reply-to: Eli Zaretskii Message-id: <83a9kiojem.fsf@gnu.org> References: <83a9l4xdst.fsf@gnu.org> <51FA137B.6070207@codesourcery.com> <20130803045452.GA997@ednor.casa.cgf.cx> <51FE1493.9070707@codesourcery.com> <20130805044122.GA1825@ednor.casa.cgf.cx> <51FF4483.5000102@codesourcery.com> <20130806020839.GA3362@ednor.casa.cgf.cx> <520067CB.4000300@codesourcery.com> <20130808051114.GA1553@ednor.casa.cgf.cx> <5203477B.8090203@codesourcery.com> <20130815174010.GB6955@ednor.casa.cgf.cx> <8738qaok76.fsf@fleche.redhat.com> X-SW-Source: 2013-08/txt/msg00407.txt.bz2 > From: Tom Tromey > Cc: Yao Qi > Date: Thu, 15 Aug 2013 12:58:05 -0600 > > The idea is something like, for Windows hosts, put stdout and stderr > into "binary" mode. Then, have those two functions implement line > buffering internally (again just for Windows hosts). Finally, have them > also transform \n -> \r\n on output. > > Would this work? How does this solve Yao's problem? I thought the problem was that \r\n got converted into \r\r\n by something outside of GDB, no?