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

Christopher Faylor
2013-08-06T02:08:49Z

On Mon, Aug 05, 2013 at 02:21:55PM +0800, Yao Qi wrote:
>On 08/05/2013 12:41 PM, Christopher Faylor wrote:
>>> I am not sure, but we never detect a cygwin pipe here. In
>>> >using_cygwin_pty, we only check the file name of handle of stdin, to
>>> >see its name match the template or not. We don't have to worry about
>>> >it.
>> Why can't the handle be a pipe? They also begin with "cygwin-".
>
>I don't understand your problem. Can you elaborate? or point out the
>problem in the patch explicitly.

I'm saying that it looks like your code will detect "echo yes | gdb"
as running on a cygwin pty.