This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Fix tuiIO.c warning on mainline
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 28 Aug 2002 01:00:11 +0200
- Subject: [PATCH]: Fix tuiIO.c warning on mainline
Hi!
Committed this patch on mainline.
Stephane
2002-08-28 Stephane Carrez <stcarrez@nerim.fr>
* tuiIO.c (CTRL_CHAR): Redefine and use readline 4.3 definition.
Index: tuiIO.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiIO.c,v
retrieving revision 1.12
diff -u -p -r1.12 tuiIO.c
--- tuiIO.c 1 Mar 2002 06:19:28 -0000 1.12
+++ tuiIO.c 27 Aug 2002 20:57:36 -0000
@@ -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.