[RFA] Avoid unlimited height on mingw built GDB's.

Eli Zaretskii eliz@gnu.org
Fri Aug 9 13:59:00 GMT 2013


> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Thu, 8 Aug 2013 10:35:01 +0200
> 
>   Mingw builds are using windows-termcap.c source
> to allow compilation despite the fact that there
> is often no termcap library for mingw.
>   The stub tgetnum function returns -1 unconditionally,
> this leads to the screen height being set to unlimited
> in init_page_info function.
> 
>   Before this, lines_per_page was set correctly
> by the call to rl_get_screen_size.
> 
>   The patch simply avoid checking tgetnum ("li") if 
> the rows parameter was set to a positive value.

Looks good to me, thanks.



More information about the Gdb-patches mailing list