This is the mail archive of the
mailing list for the GDB project.
Re: [patch] Build arm-elf-gdb on mingw host
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 <email@example.com>
>> 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.