From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17751 invoked by alias); 27 Sep 2005 02:02:23 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17597 invoked by uid 22791); 27 Sep 2005 02:01:59 -0000 Received: from c-24-61-23-223.hsd1.ma.comcast.net (HELO cgf.cx) (24.61.23.223) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 27 Sep 2005 02:01:59 +0000 Received: by cgf.cx (Postfix, from userid 201) id EFA5713C08D; Tue, 27 Sep 2005 02:01:57 +0000 (UTC) Date: Tue, 27 Sep 2005 02:02:00 -0000 From: Christopher Faylor To: Dave Murphy , gdb-patches@sources.redhat.com, Eli Zaretskii Subject: Re: [patch] Build arm-elf-gdb on mingw host Message-ID: <20050927020157.GA5708@trixie.casa.cgf.cx> Mail-Followup-To: Dave Murphy , gdb-patches@sources.redhat.com, Eli Zaretskii References: <4337317B.3050300@ntlworld.com> <20050926035937.GA24565@nevyn.them.org> <43377D19.7050505@ntlworld.com> <20050926132325.GA1219@nevyn.them.org> <20050926140841.GB17370@trixie.casa.cgf.cx> <20050926141436.GA2527@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-09/txt/msg00242.txt.bz2 On Mon, Sep 26, 2005 at 10:16:12PM +0300, Eli Zaretskii wrote: >> Date: Mon, 26 Sep 2005 10:14:36 -0400 >> From: Daniel Jacobowitz >> >> What about opening all input files in text mode and all output files >> in binary mode, on all platforms, if we need to do this? > >There's no easy way of doing that, AFAIK, except if we add "rt" and >"wb" to every call to `fopen' (or the respective O_BINARY and O_TEXT >to every call to `open'). Is that what you were suggesting? It's easy to do in cygwin by just linking with "automode.o" (which causes that behavior) but I don't think it's easy to do in raw mingw. cgf