This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Build arm-elf-gdb on mingw host


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]