This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [Mingw-users] Re: _WIN32?
On Thu, May 03, 2001 at 06:24:32PM -0400, Andrew Cagney wrote:
>For:
>
>> #ifndef _WIN32
>> kill (PIDGET (inferior_pid), SIGINT);
>> #endif
>>
>> would be replaced with something like this:
>>
>> #ifndef _N0_KILL_
>> kill (PIDGET (inferior_pid), SIGINT);
>> #endif
>
>I'm actually puzzled. It looks very like someone took a shortcut and,
>instead of implementing new methods, just went through and commented out
>every call to kill(). cf handle_sigio().
>
>Anyway, to answer your question:
>
>> You are proposing that something like this in inflow.c
>
>Yes, for the most part I would like to strongly encouraging people doing
>WIN32, GO32 and CYGWIN ports to look back over all those #ifdef's and
>see if they are better served by an autoconf feature test. Per my
>earlier e-mail, the obvious oneis to do with how file systems are DOS
>file systems are handled and there, I think things are being replaced
>with a runtime test.
FWIW, I strongly agree with this sentiment. Host conditionals are evil.
Should this be a goal for 5.1?
cgf