binutils-gdb/gdb/tui
Jan Kratochvil 840ed64d1c Fix --with-system-readline with readline-6.3 patch 5
I have filed now:
	--with-system-readline uses bundled readline include files
	https://sourceware.org/bugzilla/show_bug.cgi?id=17077

To see any effect of the patch below you have to do:
	rm -rf readline
Otherwise readline include files get used the bundled ones from GDB which are
currently 6.2 while system readline may be 6.3 already.

You also have to use system readline-6.3 including its upstream patch:
	[Bug-readline] Readline-6.3 Official Patch 5
	http://lists.gnu.org/archive/html/bug-readline/2014-04/msg00018.html
	Message-ID: <140415125618.AA57598.SM@caleb.ins.cwru.edu>

In short it happens on Fedora Rawhide since:
	readline-6.3-1.fc21
	https://koji.fedoraproject.org/koji/buildinfo?buildID=538941

The error is:
	../../gdb/tui/tui-io.c:132:1: error: 'Function' is deprecated [-Werror=deprecated-declarations]
	 static Function *tui_old_rl_getc_function;
	 ^
	../../gdb/tui/tui-io.c:133:1: error: 'VFunction' is deprecated [-Werror=deprecated-declarations]
	 static VFunction *tui_old_rl_redisplay_function;
	 ^
	../../gdb/tui/tui-io.c:134:1: error: 'VFunction' is deprecated [-Werror=deprecated-declarations]
	 static VFunction *tui_old_rl_prep_terminal;
	 ^
	../../gdb/tui/tui-io.c:135:1: error: 'VFunction' is deprecated [-Werror=deprecated-declarations]
	 static VFunction *tui_old_rl_deprep_terminal;
	 ^

It is since bash change:
lib/readline/rltypedefs.h
       - remove old Function/VFunction/CPFunction/CPPFunction typedefs as
	 suggested by Tom Tromey <tromey@redhat.com>

The new typedefs used below are present in readline/rltypedefs.h since:
	git://git.savannah.gnu.org/bash.git
	commit 28ef6c316f1aff914bb95ac09787a3c83c1815fd
	Date:   Fri Apr 6 19:14:31 2001 +0000

gdb/
2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Fix --with-system-readline with readline-6.3 patch 5.
	* tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
	(tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
	types.

Message-ID: <20140620105004.GA22236@host2.jankratochvil.net>
2014-06-20 17:43:56 +02:00
..
ChangeLog-1998-2003
tui-command.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-command.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-data.c replace XMALLOC with XNEW 2014-01-13 07:31:28 -07:00
tui-data.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-disasm.c start change to progspace independence 2014-02-26 12:11:17 -07:00
tui-disasm.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-file.c replace XMALLOC with XNEW 2014-01-13 07:31:28 -07:00
tui-file.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-hooks.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-hooks.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-interp.c Make display_gdb_prompt CLI-only. 2014-05-29 13:47:09 +01:00
tui-io.c Fix --with-system-readline with readline-6.3 patch 5 2014-06-20 17:43:56 +02:00
tui-io.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-layout.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-layout.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-out.c replace XMALLOC with XNEW 2014-01-13 07:31:28 -07:00
tui-regs.c make calls to help_list use enumerator 2014-06-13 09:29:19 -06:00
tui-regs.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-source.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-source.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-stack.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-stack.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-win.c make calls to help_list use enumerator 2014-06-13 09:29:19 -06:00
tui-win.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-windata.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-windata.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-wingeneral.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-wingeneral.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-winsource.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui-winsource.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
tui.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00