[binutils-gdb] [gdb/tui] Remove local CTRL_CHAR definition

Tom de Vries via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7e0417f49792ea5865faa47735be638989fe5229

commit 7e0417f49792ea5865faa47735be638989fe5229
Author: Tom de Vries <[email protected]>
Date:   Tue Mar 24 16:38:32 2026 +0100

    [gdb/tui] Remove local CTRL_CHAR definition
    
    In gdb/tui/tui-io.c we have a local definition of CTRL_CHAR:
    ...
     /* Use definition from readline 4.3.  */
     #undef CTRL_CHAR
     #define CTRL_CHAR(c) \
          ((c) < control_character_threshold && (((c) & 0x80) == 0))
    ...
    
    We require readline >= 7.0, so we can expect the definition to be available.
    
    Remove the superfluous local definition.
    
    Tested on x86_64-linux.
    
    Approved-By: Tom Tromey <[email protected]>

Diff:
---
 gdb/tui/tui-io.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
index a9a50446e8a..6b94fa2e8b0 100644
--- a/gdb/tui/tui-io.c
+++ b/gdb/tui/tui-io.c
@@ -64,11 +64,6 @@ key_is_start_sequence (int ch)
   return (ch == 27);
 }
 
-/* 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.