aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2022-10-23 14:26:20 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-10-23 18:16:03 +0200
commit71cb448210e74e3d137c70fcb226a1d39f8e43d3 (patch)
tree8b3a2a29c52949736f2aa1e7171ce3e7a60b9b8f
parente3706bf49756557636105f0d5f6ecf45d5b12e20 (diff)
downloadupstream-71cb448210e74e3d137c70fcb226a1d39f8e43d3.tar.gz
upstream-71cb448210e74e3d137c70fcb226a1d39f8e43d3.tar.bz2
upstream-71cb448210e74e3d137c70fcb226a1d39f8e43d3.zip
gdb: add patch adding support for readline 8.2
Add "001-Add-support-for-readline-8.2.patch" adding support for readline 8.2. Signed-off-by: Nick Hainke <vincent@systemli.org>
-rw-r--r--package/devel/gdb/patches/001-Add-support-for-readline-8.2.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/devel/gdb/patches/001-Add-support-for-readline-8.2.patch b/package/devel/gdb/patches/001-Add-support-for-readline-8.2.patch
new file mode 100644
index 0000000000..eb93c7f290
--- /dev/null
+++ b/package/devel/gdb/patches/001-Add-support-for-readline-8.2.patch
@@ -0,0 +1,31 @@
+From 1add37b567a7dee39d99f37b37802034c3fce9c4 Mon Sep 17 00:00:00 2001
+From: Andreas Schwab <schwab@linux-m68k.org>
+Date: Sun, 20 Mar 2022 14:01:54 +0100
+Subject: [PATCH] Add support for readline 8.2
+
+In readline 8.2 the type of rl_completer_word_break_characters changed to
+include const.
+---
+ gdb/completer.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- 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_thr
+ rl_basic_quote_characters = NULL;
+ }
+
+- return rl_completer_word_break_characters;
++ return (char *) rl_completer_word_break_characters;
+ }
+
+ char *