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


> Date: Mon, 26 Sep 2005 00:23:39 +0100
> From: Dave Murphy <wintermute2k4@ntlworld.com>
> 
> When building the bfd/doc directory under mingw/msys chew.c converts 
> line endings to crlf.  I've patched so the files are read as binary, 
> preventing this conversion.

Why?  What's wrong with having the output from chew have CRLF line
endings on Windows?

> SIGTRAP isn't defined in the MinGW headers, I patched remote-sim.c to 
> define this if it's not defined.

I don't think this is a good idea.  It is much better (and widely
practiced) to #ifdef away portions of code that use SIGTRAP, like
this:

    #ifdef SIGTRAP
    ... code that depends on SIGTRAP ...
    #endif


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