aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-27 20:58:27 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-27 20:58:27 +0000
commitec6f88920ba0f7b5be7492798312917d60b84c80 (patch)
tree2283b009add371441c9e08f326245985e16fdc8b
parente1507482f5e624c7fcc9d4365f75de6ae7d010e1 (diff)
downloadgdb-ec6f88920ba0f7b5be7492798312917d60b84c80.zip
gdb-ec6f88920ba0f7b5be7492798312917d60b84c80.tar.gz
gdb-ec6f88920ba0f7b5be7492798312917d60b84c80.tar.bz2
* tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
-rw-r--r--gdb/tui/ChangeLog4
-rw-r--r--gdb/tui/tuiIO.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog
index 7062780..343151f 100644
--- a/gdb/tui/ChangeLog
+++ b/gdb/tui/ChangeLog
@@ -1,3 +1,7 @@
+2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
+
+ * tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
+
2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
Fix PR gdb/393:
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.