From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1978 invoked by alias); 26 Sep 2005 15:41:53 -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 1937 invoked by uid 22791); 26 Sep 2005 15:41:48 -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; Mon, 26 Sep 2005 15:41:48 +0000 Received: by cgf.cx (Postfix, from userid 201) id DC22413C08D; Mon, 26 Sep 2005 15:41:46 +0000 (UTC) Date: Mon, 26 Sep 2005 15:41:00 -0000 From: Christopher Faylor To: gdb-patches@sources.redhat.com Subject: Re: [patch] Build arm-elf-gdb on mingw host Message-ID: <20050926154146.GH18269@trixie.casa.cgf.cx> Mail-Followup-To: gdb-patches@sources.redhat.com 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> <20050926142611.GA17967@trixie.casa.cgf.cx> <20050926143047.GA2921@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050926143047.GA2921@nevyn.them.org> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-09/txt/msg00226.txt.bz2 On Mon, Sep 26, 2005 at 10:30:47AM -0400, Daniel Jacobowitz wrote: >On Mon, Sep 26, 2005 at 10:26:11AM -0400, Christopher Faylor wrote: >> I think you're right. This sounds like a problem in msys's texinfo >> although just linking with binmode.o shouldn't really hurt anything even >> if texinfo was fixed. > >Wouldn't it break if the source files (bfd/*, inputs to chew) had DOS >line endings? I know chew doesn't handle that. "It depends" on the underlying mount table, at least on cygwin, and, I assume, under msys. If the directory is mounted in text mode then linking with 'binmode.o' will help. If it is mounted in 'binary mode' then linking with 'binmode.o' will have no effect. The 100% correct fix is, as you said, to always open the file in text mode but there is, apparently, no POSIX-sanctioned way to do that, although MSVCRT does allow "rt" or O_TEXT to force a text file open, I believe. cgf