archrelease: copy trunk to community-any
[ArchLinux/community.git] / or1k-elf-gdb / repos / community-x86_64 / readline8.patch
blob3441726063081b4a902c588f17656494823fd611
1 commit 1add37b567a7dee39d99f37b37802034c3fce9c4
2 Author: Andreas Schwab <schwab@linux-m68k.org>
3 Date: Sun Mar 20 14:01:54 2022 +0100
5 Add support for readline 8.2
7 In readline 8.2 the type of rl_completer_word_break_characters changed to
8 include const.
10 diff --git a/gdb/completer.c b/gdb/completer.c
11 index d3900ae2014..a51c16ac7f8 100644
12 --- a/gdb/completer.c
13 +++ b/gdb/completer.c
14 @@ -36,7 +36,7 @@
15 calling a hook instead so we eliminate the CLI dependency. */
16 #include "gdbcmd.h"
18 -/* Needed for rl_completer_word_break_characters() and for
19 +/* Needed for rl_completer_word_break_characters and for
20 rl_filename_completion_function. */
21 #include "readline/readline.h"
23 @@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_throw ()
24 rl_basic_quote_characters = NULL;
27 - return rl_completer_word_break_characters;
28 + return (char *) rl_completer_word_break_characters;
31 char *