gdb: fix FTBFS with readline-8.2

This commit is contained in:
Xi Ruoyao 2022-10-05 10:15:19 +08:00
parent 4c82fcd48b
commit 661e7eb274
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -114,13 +114,17 @@
<sect2 role="installation">
<title>Installation of GDB</title>
<!--
<!-- https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1add37b
Will be included in 13.1, but not 12.2 (if there will be 12.2). -->
<para>
First, apply some changes from upstream to fix issues with glibc-2.35:
First, apply a change from upstream to fix issues with readline-8.2
or later:
</para>
<screen><userinput remap="pre">patch -Np1 -i ../gdb-&gdb-version;-upstream_fixes-1.patch</userinput></screen>
-->
<screen><userinput remap="pre">sed '/return/s/rl.*characters/(char *) &amp;/' -i gdb/completer.c</userinput></screen>
<para>
Install <application>GDB</application> by running the following
commands: