summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2022-03-20 14:01:54 +0100
committerLuis Machado <luis.machado@arm.com>2022-12-19 09:34:30 +0000
commitf6e8c7228463a552d175211f4fcea93cca889686 (patch)
tree0dc437021c7424f568df0717585457c3e17595c4
parent7da34f425010957493342b86e97cff4bcba75212 (diff)
downloadbinutils-gdb-f6e8c7228463a552d175211f4fcea93cca889686.tar.gz
Add support for readline 8.2
In readline 8.2 the type of rl_completer_word_break_characters changed to include const.
-rw-r--r--gdb/completer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/completer.c b/gdb/completer.c
index e75b8b4b85d..bb25e799ebc 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"
@@ -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 *