aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tuiIO.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tuiIO.c')
-rw-r--r--gdb/tui/tuiIO.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/tui/tuiIO.c b/gdb/tui/tuiIO.c
index d664128..fe389af 100644
--- a/gdb/tui/tuiIO.c
+++ b/gdb/tui/tuiIO.c
@@ -59,6 +59,10 @@
#include <fcntl.h>
#include <signal.h>
+/* Use definition from readline 4.3. */
+#undef CTRL_CHAR
+#define CTRL_CHAR(c) ((c) < control_character_threshold && (((c) & 0x80) == 0))
+
/* This file controls the IO interactions between gdb and curses.
When the TUI is enabled, gdb has two modes a curses and a standard
mode.