gdb vs readline, 1line patch
Emmanuel Thomé
thome@lix.polytechnique.fr
Tue Aug 27 07:28:00 GMT 2002
The following patch should be added to gdb since it includes readline
4.1 ; diff is against stock 5.2.1
Starting with readline 4.2, this is no longer needed (it is possible as
well to patch readline/readline.c to adopt readline's new behavior,
which is using getenv if rl_terminal_name is unset).
Not setting rl_terminal_name results in non-working $if term= directives
in .inputrc. ; this has been a long-standing bug in gdb for a while.
Cheers,
E. Thomé.
-------------- next part --------------
--- gdb-5.2.1/gdb/top.c.orig Sat Feb 23 21:12:13 2002
+++ gdb-5.2.1/gdb/top.c Tue Aug 27 15:30:08 2002
@@ -1929,6 +1929,7 @@
get_gdb_completer_word_break_characters ();
rl_completer_quote_characters = get_gdb_completer_quote_characters ();
rl_readline_name = "gdb";
+ rl_terminal_name = getenv("TERM");
/* The name for this defun comes from Bash, where it originated.
15 is Control-o, the same binding this function has in Bash. */
More information about the Gdb-patches
mailing list