Re: [PATCH 1/3] Detect GDB is in cygwin

Yao Qi
2013-08-08T07:24:39Z

On 08/08/2013 01:11 PM, Christopher Faylor wrote:
> If you're just going to always set to unbuffered when something
> is a pipe, why not just check for a pipe using GetFileType? Then
> you don't have to try to use an undocumented Cygwin behaviour.

What I am going to do is to set stdout/stderr unbuffered if we can
detect that GDB is running in cygwin, with tty allocated or without tty
allocated. We'd like to restrict this behaviour change only when
mingw gdb is running in cygwin. We don't want to change the behaviour
on native windows, so we have to rely on this Cygwin behaviour.

--
Yao (é½å°§)