]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add support for readline 8.2
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 20 Mar 2022 13:01:54 +0000 (14:01 +0100)
committerLuis Machado <luis.machado@arm.com>
Mon, 19 Dec 2022 09:34:30 +0000 (09:34 +0000)
In readline 8.2 the type of rl_completer_word_break_characters changed to
include const.

gdb/completer.c

index e75b8b4b85dc2e8671d0fd04e8fcbf0dd0bdcd1d..bb25e799ebc18a29873b9f60c3d53b53f85448ae 100644 (file)
@@ -36,7 +36,7 @@
    calling a hook instead so we eliminate the CLI dependency.  */
 #include "gdbcmd.h"
 
-/* Needed for rl_completer_word_break_characters() and for
+/* Needed for rl_completer_word_break_characters and for
    rl_filename_completion_function.  */
 #include "readline/readline.h"
 
@@ -2033,7 +2033,7 @@ gdb_completion_word_break_characters_throw ()
       rl_basic_quote_characters = NULL;
     }
 
-  return rl_completer_word_break_characters;
+  return (char *) rl_completer_word_break_characters;
 }
 
 char *