From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3855 invoked by alias); 17 Jun 2009 17:17:05 -0000 Received: (qmail 3843 invoked by uid 22791); 17 Jun 2009 17:17:03 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Jun 2009 17:16:57 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MGykn-0008Q2-L1; Wed, 17 Jun 2009 13:16:53 -0400 From: Eli Zaretskii To: 'Daniel Jacobowitz' CC: muller@ics.u-strasbg.fr, brobecker@adacore.com, gdb-patches@sourceware.org In-reply-to: <20090617133626.GA24310@caradoc.them.org> (message from 'Daniel Jacobowitz' on Wed, 17 Jun 2009 09:36:26 -0400) Subject: Re: [RFC] Improve testsuite for poor expect behavior Reply-to: Eli Zaretskii References: <001201c9ebb1$96414b10$c2c3e130$@u-strasbg.fr> <20090613150505.GA28157@caradoc.them.org> <000001c9ec65$9bf13ca0$d3d3b5e0$@u-strasbg.fr> <20090613235454.GA1893@caradoc.them.org> <20090614002516.GO25703@adacore.com> <000001c9ed8a$21cfdc30$656f9490$@u-strasbg.fr> <20090616145756.GB7730@adacore.com> <000c01c9eeda$022d8a70$06889f50$@u-strasbg.fr> <20090617133626.GA24310@caradoc.them.org> Message-Id: Date: Wed, 17 Jun 2009 17:17:00 -0000 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: 2009-06/txt/msg00436.txt.bz2 > Date: Wed, 17 Jun 2009 09:36:26 -0400 > From: 'Daniel Jacobowitz' > Cc: 'Joel Brobecker' , gdb-patches@sourceware.org > > I have not tried this on DJGPP at all. You cannot try this with DJGPP, because there are no such APIs in DJGPP (with the exception of `setmode', which does exist). Also, there are no pipes in DJGPP. I cannot judge what would be needed for DJGPP, since Pierre did not yet explain how does he run DJGPP with the test suite, nor show any code that achieves that. All I can say is that DJGPP has the `setmode' function that can be used to switch a standard handle into binary mode, and that `isatty' is available to detect whether a handle is connected to a terminal device. Note that the DJGPP build of GDB generally does not always use file I/O functions to write to the terminal; it uses direct screen I/O for some ops. Thus, binary mode file I/O not necessarily will solve the problem that bothers Pierre, although I do not yet understand fully whether it is relevant to DJGPP as it is to MinGW.