tui: Fix newterm call for older ncurses
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 4 Nov 2014 13:27:06 +0000 (08:27 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 4 Nov 2014 19:15:53 +0000 (14:15 -0500)
commitc87e6d0015ae357774fa5a25e2dcfed2c1df097f
treeaf34a85dafd0397adb6d6f0872cecf3ae92cc213
parent441ef17f095f99bb094eb28990a92b8cdc8553b4
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.
gdb/ChangeLog
gdb/tui/tui.c
This page took 0.030997 seconds and 4 git commands to generate.