]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-readline8.2.patch
- added readline8.2 patch from git (fixes build with readline 8.2.x)
[packages/gdb.git] / gdb-readline8.2.patch
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
6 In readline 8.2 the type of rl_completer_word_break_characters changed to
7 include const.
8 ---
9  gdb/completer.c | 4 ++--
10  1 file changed, 2 insertions(+), 2 deletions(-)
11
12 diff --git a/gdb/completer.c b/gdb/completer.c
13 index d3900ae2014..a51c16ac7f8 100644
14 --- a/gdb/completer.c
15 +++ b/gdb/completer.c
16 @@ -36,7 +36,7 @@
17     calling a hook instead so we eliminate the CLI dependency.  */
18  #include "gdbcmd.h"
19  
20 -/* Needed for rl_completer_word_break_characters() and for
21 +/* Needed for rl_completer_word_break_characters and for
22     rl_filename_completion_function.  */
23  #include "readline/readline.h"
24  
25 @@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_throw ()
26        rl_basic_quote_characters = NULL;
27      }
28  
29 -  return rl_completer_word_break_characters;
30 +  return (char *) rl_completer_word_break_characters;
31  }
32  
33  char *
34 -- 
35 2.31.1
36
This page took 0.133027 seconds and 3 git commands to generate.