aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2022-03-20 14:01:54 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2022-03-21 12:14:11 +0100
commit1add37b567a7dee39d99f37b37802034c3fce9c4 (patch)
tree67587fad725553c91bb945a67797e9b8bec82c01 /gdb
parent692e92c5af88ae509d81e484d270dd6072a41ff2 (diff)
downloadgdb-1add37b567a7dee39d99f37b37802034c3fce9c4.zip
gdb-1add37b567a7dee39d99f37b37802034c3fce9c4.tar.gz
gdb-1add37b567a7dee39d99f37b37802034c3fce9c4.tar.bz2
Add support for readline 8.2
In readline 8.2 the type of rl_completer_word_break_characters changed to include const.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/completer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/completer.c b/gdb/completer.c
index d3900ae..a51c16a 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -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"
@@ -2011,7 +2011,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 *