This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/3] Detect GDB is in cygwin
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: gdb-patches at sourceware dot org, Yao Qi <yao at codesourcery dot com>
- Date: Mon, 5 Aug 2013 22:08:39 -0400
- Subject: Re: [PATCH 1/3] Detect GDB is in cygwin
- References: <1375087546-22591-1-git-send-email-yao at codesourcery dot com> <1375087546-22591-2-git-send-email-yao at codesourcery dot com> <83txjdxtpd dot fsf at gnu dot org> <51F786CB dot 3020700 at codesourcery dot com> <83a9l4xdst dot fsf at gnu dot org> <51FA137B dot 6070207 at codesourcery dot com> <20130803045452 dot GA997 at ednor dot casa dot cgf dot cx> <51FE1493 dot 9070707 at codesourcery dot com> <20130805044122 dot GA1825 at ednor dot casa dot cgf dot cx> <51FF4483 dot 5000102 at codesourcery dot com>
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.