old-cross-binutils/gdb/tui
Simon Marchi c87e6d0015 tui: Fix newterm call for older ncurses
Older versions of ncurses' newterm can't take NULL for their ofp and ifp
parameters. Newer versions can, and they fall back on stdout/stdin if
that is the case.

This patch explicitly passes stdout/stdin to the call to newterm to
avoid segfaulting with older ncurses.

gdb/Changelog:

2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>

	* tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
2014-11-04 14:15:53 -05:00
..
ChangeLog-1998-2003
tui-command.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-command.h
tui-data.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-data.h
tui-disasm.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-disasm.h
tui-file.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-file.h
tui-hooks.c
tui-hooks.h
tui-interp.c PR tui/16138, PR tui/17519, and misc failures to initialize the terminal 2014-10-29 14:23:57 +00:00
tui-io.c Replace hardwired error handlers in tui_initialize_io 2014-08-29 10:12:01 +01:00
tui-io.h
tui-layout.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-layout.h
tui-out.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-regs.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-regs.h
tui-source.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-source.h
tui-stack.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-stack.h
tui-win.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-win.h
tui-windata.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-windata.h
tui-wingeneral.c
tui-wingeneral.h
tui-winsource.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
tui-winsource.h
tui.c tui: Fix newterm call for older ncurses 2014-11-04 14:15:53 -05:00
tui.h PR tui/16138, PR tui/17519, and misc failures to initialize the terminal 2014-10-29 14:23:57 +00:00