diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-14 20:00:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-15 09:38:37 +0000 |
commit | dececdc8e8bd2582bd44cc3011b1a72fa519d064 (patch) | |
tree | 3cc9ea34fa36a259a500e0d3118e77144cf93c71 /meta/recipes-devtools/gdb | |
parent | 82e8c4105c8beac04e3c5769645f3cfccefb2dc6 (diff) | |
download | poky-dececdc8e8bd2582bd44cc3011b1a72fa519d064.tar.gz |
readline: update 8.1.2 -> 8.2
Replace configure-fix.patch with --with-shared-termcap-library
Backport a compatibility fix for gdb.
(From OE-Core rev: 72aea7be34cd88030283b989d5381a5fd944f53d)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gdb/gdb/readline-8.2.patch | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb.inc b/meta/recipes-devtools/gdb/gdb.inc index 3b569fd40e..5a9fe271b9 100644 --- a/meta/recipes-devtools/gdb/gdb.inc +++ b/meta/recipes-devtools/gdb/gdb.inc | |||
@@ -14,5 +14,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \ | |||
14 | file://0007-resolve-restrict-keyword-conflict.patch \ | 14 | file://0007-resolve-restrict-keyword-conflict.patch \ |
15 | file://0008-Fix-invalid-sigprocmask-call.patch \ | 15 | file://0008-Fix-invalid-sigprocmask-call.patch \ |
16 | file://0009-gdbserver-ctrl-c-handling.patch \ | 16 | file://0009-gdbserver-ctrl-c-handling.patch \ |
17 | file://readline-8.2.patch \ | ||
17 | " | 18 | " |
18 | SRC_URI[sha256sum] = "0e1793bf8f2b54d53f46dea84ccfd446f48f81b297b28c4f7fc017b818d69fed" | 19 | SRC_URI[sha256sum] = "0e1793bf8f2b54d53f46dea84ccfd446f48f81b297b28c4f7fc017b818d69fed" |
diff --git a/meta/recipes-devtools/gdb/gdb/readline-8.2.patch b/meta/recipes-devtools/gdb/gdb/readline-8.2.patch new file mode 100644 index 0000000000..c2db4c0d79 --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb/readline-8.2.patch | |||
@@ -0,0 +1,39 @@ | |||
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 | Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1add37b567a7dee39d99f37b37802034c3fce9c4] | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | --- | ||
12 | gdb/completer.c | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/gdb/completer.c b/gdb/completer.c | ||
16 | index d3900ae2014..a51c16ac7f8 100644 | ||
17 | --- a/gdb/completer.c | ||
18 | +++ b/gdb/completer.c | ||
19 | @@ -36,7 +36,7 @@ | ||
20 | calling a hook instead so we eliminate the CLI dependency. */ | ||
21 | #include "gdbcmd.h" | ||
22 | |||
23 | -/* Needed for rl_completer_word_break_characters() and for | ||
24 | +/* Needed for rl_completer_word_break_characters and for | ||
25 | rl_filename_completion_function. */ | ||
26 | #include "readline/readline.h" | ||
27 | |||
28 | @@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_throw () | ||
29 | rl_basic_quote_characters = NULL; | ||
30 | } | ||
31 | |||
32 | - return rl_completer_word_break_characters; | ||
33 | + return (char *) rl_completer_word_break_characters; | ||
34 | } | ||
35 | |||
36 | char * | ||
37 | -- | ||
38 | 2.31.1 | ||
39 | |||