Blame SOURCES/gdb-readline-6.3.5.patch

f9426a
http://sourceware.org/ml/gdb-patches/2014-06/msg00737.html
f9426a
Subject: [patch] Fix --with-system-readline with readline-6.3 patch 5
f9426a
f9426a
f9426a
--BXVAT5kNtrzKuDFl
f9426a
Content-Type: text/plain; charset=us-ascii
f9426a
Content-Disposition: inline
f9426a
f9426a
Hi,
f9426a
f9426a
I have filed now:
f9426a
	--with-system-readline uses bundled readline include files
f9426a
	https://sourceware.org/bugzilla/show_bug.cgi?id=17077
f9426a
f9426a
To see any effect of the patch below you have to do:
f9426a
	rm -rf readline
f9426a
Otherwise readline include files get used the bundled ones from GDB which are
f9426a
currently 6.2 while system readline may be 6.3 already.
f9426a
f9426a
You also have to use system readline-6.3 including its upstream patch:
f9426a
	[Bug-readline] Readline-6.3 Official Patch 5
f9426a
	http://lists.gnu.org/archive/html/bug-readline/2014-04/msg00018.html
f9426a
	Message-ID: <140415125618.AA57598.SM@caleb.ins.cwru.edu>
f9426a
f9426a
In short it happens on Fedora Rawhide since:
f9426a
	readline-6.3-1.fc21
f9426a
	https://koji.fedoraproject.org/koji/buildinfo?buildID=538941
f9426a
f9426a
The error is:
f9426a
	https://kojipkgs.fedoraproject.org//work/tasks/9890/7059890/build.log
f9426a
	../../gdb/tui/tui-io.c:132:1: error: 'Function' is deprecated [-Werror=deprecated-declarations]
f9426a
	 static Function *tui_old_rl_getc_function;
f9426a
	 ^
f9426a
	../../gdb/tui/tui-io.c:133:1: error: 'VFunction' is deprecated [-Werror=deprecated-declarations]
f9426a
	 static VFunction *tui_old_rl_redisplay_function;
f9426a
	 ^
f9426a
	../../gdb/tui/tui-io.c:134:1: error: 'VFunction' is deprecated [-Werror=deprecated-declarations]
f9426a
	 static VFunction *tui_old_rl_prep_terminal;
f9426a
	 ^
f9426a
	../../gdb/tui/tui-io.c:135:1: error: 'VFunction' is deprecated [-Werror=deprecated-declarations]
f9426a
	 static VFunction *tui_old_rl_deprep_terminal;
f9426a
	 ^
f9426a
f9426a
It is since bash change:
f9426a
lib/readline/rltypedefs.h
f9426a
       - remove old Function/VFunction/CPFunction/CPPFunction typedefs as
f9426a
         suggested by Tom Tromey <tromey@redhat.com>
f9426a
f9426a
The new typedefs used below are present in readline/rltypedefs.h since:
f9426a
	git://git.savannah.gnu.org/bash.git
f9426a
	commit 28ef6c316f1aff914bb95ac09787a3c83c1815fd
f9426a
	Date:   Fri Apr 6 19:14:31 2001 +0000
f9426a
f9426a
f9426a
Jan
f9426a
f9426a
--BXVAT5kNtrzKuDFl
f9426a
Content-Type: text/plain; charset=us-ascii
f9426a
Content-Disposition: inline; filename="tuireadline.patch"
f9426a
f9426a
gdb/
f9426a
2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
f9426a
f9426a
	Fix --with-system-readline with readline-6.3 patch 5.
f9426a
	* tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
f9426a
	(tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
f9426a
	types.
f9426a
f9426a
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
f9426a
index 761d203..dcccb08 100644
f9426a
--- a/gdb/tui/tui-io.c
f9426a
+++ b/gdb/tui/tui-io.c
f9426a
@@ -129,10 +129,10 @@ static struct ui_file *tui_old_stderr;
f9426a
 struct ui_out *tui_old_uiout;
f9426a
 
f9426a
 /* Readline previous hooks.  */
f9426a
-static Function *tui_old_rl_getc_function;
f9426a
-static VFunction *tui_old_rl_redisplay_function;
f9426a
-static VFunction *tui_old_rl_prep_terminal;
f9426a
-static VFunction *tui_old_rl_deprep_terminal;
f9426a
+static rl_getc_func_t *tui_old_rl_getc_function;
f9426a
+static rl_voidfunc_t *tui_old_rl_redisplay_function;
f9426a
+static rl_vintfunc_t *tui_old_rl_prep_terminal;
f9426a
+static rl_voidfunc_t *tui_old_rl_deprep_terminal;
f9426a
 static int tui_old_rl_echoing_p;
f9426a
 
f9426a
 /* Readline output stream.
f9426a
f9426a
--BXVAT5kNtrzKuDFl--
f9426a