1
0

001-Add-support-for-readline-8.2.patch 942 B

12345678910111213141516171819202122232425262728293031
  1. From 1add37b567a7dee39d99f37b37802034c3fce9c4 Mon Sep 17 00:00:00 2001
  2. From: Andreas Schwab <schwab@linux-m68k.org>
  3. Date: Sun, 20 Mar 2022 14:01:54 +0100
  4. Subject: [PATCH] Add support for readline 8.2
  5. In readline 8.2 the type of rl_completer_word_break_characters changed to
  6. include const.
  7. ---
  8. gdb/completer.c | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. --- a/gdb/completer.c
  11. +++ b/gdb/completer.c
  12. @@ -36,7 +36,7 @@
  13. calling a hook instead so we eliminate the CLI dependency. */
  14. #include "gdbcmd.h"
  15. -/* Needed for rl_completer_word_break_characters() and for
  16. +/* Needed for rl_completer_word_break_characters and for
  17. rl_filename_completion_function. */
  18. #include "readline/readline.h"
  19. @@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_thr
  20. rl_basic_quote_characters = NULL;
  21. }
  22. - return rl_completer_word_break_characters;
  23. + return (char *) rl_completer_word_break_characters;
  24. }
  25. char *