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: Upgrading readline


> From: Tom Tromey <tom@tromey.com>
> Date: Sat, 29 Sep 2018 05:52:37 -0600
> 
>   input.c, readline:
>     +int
>     +win32_isatty (int fd)
>     +{
>     +  return (_isatty (fd) ? ((((long) (HANDLE) _get_osfhandle (fd)) & 3) == 3) : 0);
>     +}

The Readline version reportedly doesn't work with newer versions of
Windows, so I think we should ask upstream Readline to use the newer
code we have in GDB.

> I don't know the difference between __DJGPP__, __MSDOS__, and
> __GO32__

They are all equivalent, so I suggest to change them all to use
__DJGPP__, unless there's some reason not to.

> the sources also check __MINGW32__, _WIN32, and __CYGWIN__ at
> places.

These are unrelated to DOS/DJGPP/GO32, they are for MinGW builds and
Cygwin builds.

Thanks for doing this.


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