A while back, Eli sent a patch to readline that was incorporated by
upstream readline in a slightly different form. To cut down on
divergences between GDB and upstream readline, I am checking in this
patch to use the readline code.
readline/readline/ChangeLog.gdb
2021-01-23 Tom Tromey <tom@tromey.com>
* input.c [_WIN32]: Use code from upstream readline.
+2021-01-23 Tom Tromey <tom@tromey.com>
+
+ * input.c [_WIN32]: Use code from upstream readline.
+
2019-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
PR cli/24980
2019-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
PR cli/24980
static int rl_get_char PARAMS((int *));
static int rl_gather_tyi PARAMS((void));
static int rl_get_char PARAMS((int *));
static int rl_gather_tyi PARAMS((void));
+/* Windows isatty returns true for every character device, including the null
+ device, so we need to perform additional checks. */
#if defined (_WIN32) && !defined (__CYGWIN__)
#if defined (_WIN32) && !defined (__CYGWIN__)
-
-/* 'isatty' in the Windows runtime returns non-zero for every
- character device, including the null device. Repair that. */
#include <io.h>
#include <conio.h>
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#include <io.h>
#include <conio.h>
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
+int
+win32_isatty (int fd)
-#define isatty(x) w32_isatty(x)
+#define isatty(x) win32_isatty(x)
#endif
/* **************************************************************** */
#endif
/* **************************************************************** */