]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/tui] Remove local CTRL_CHAR definition
authorTom de Vries <tdevries@suse.de>
Tue, 24 Mar 2026 15:38:32 +0000 (16:38 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 24 Mar 2026 15:38:32 +0000 (16:38 +0100)
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 <tom@tromey.com>
gdb/tui/tui-io.c

index a9a50446e8a779c55cfe7ab89e6f898b7cceb6db..6b94fa2e8b0f8c3b37ed49d8dd363c25761566a7 100644 (file)
@@ -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.