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: RFA: Support Windows extended error numbers in safe_strerror


Daniel Jacobowitz <drow@false.org> writes:

> Except we're trying to kill the aggravating NM files, remember?  Also,
> it would be an XM file, and we've already successfully killed those (or
> most of them).  We replaced them with autoconf magic, which is not
> fundamentally different from the USE_WIN32API bits.

USE_WIN32API is different because it selects an API which is not Unix
like.  It's the only non-Unix-like host which gdb runs on today.  I
think it would be reasonable to have special .h and .c files to handle
Windows code.  You can call them XM files, or you can call them
something else.  Scattering Windows code through the Unix code seems
like a bad idea to me.

I think that scattering autoconf magic through the code is also a bad
idea, and should be avoided.  But I think it is less bad, because at
least the code all looks the same.  Windows code does not.

Ian


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