From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21514 invoked by alias); 29 Jul 2013 18:43:36 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 21505 invoked by uid 89); 29 Jul 2013 18:43:36 -0000 X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RDNS_NONE,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from Unknown (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 29 Jul 2013 18:43:35 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MQP00900NNS1600@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Mon, 29 Jul 2013 21:43:27 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MQP007AHO0CVHM0@a-mtaout22.012.net.il>; Mon, 29 Jul 2013 21:43:25 +0300 (IDT) Date: Mon, 29 Jul 2013 18:43:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 0/3 V3] Test mingw32 GDB in cygwin In-reply-to: <8738qxp7ky.fsf@fleche.redhat.com> To: Tom Tromey Cc: yao@codesourcery.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83fvuxxl4a.fsf@gnu.org> References: <1375087546-22591-1-git-send-email-yao@codesourcery.com> <8738qxp7ky.fsf@fleche.redhat.com> X-SW-Source: 2013-07/txt/msg00732.txt.bz2 > From: Tom Tromey > Cc: > Date: Mon, 29 Jul 2013 12:03:09 -0600 > > >>>>> "Yao" == Yao Qi writes: > > Yao> My plan next step would be to wrap isatty by gdb_isatty, which uses > Yao> the logic in Corinna's example to return the correct result on > Yao> cygwin pty. > > I wonder if this could be fixed in the gnulib isatty module instead. That could be better, but the procedure would be much longer (from my experience), and we currently don't import that module anyway. Btw, what does the proposed code produce when GDB runs from the MSYS Bash window? If it recognizes it as a Cygwin shell, then I'd very much like GDB not to do that, as I frequently need to run GDB like that, when some complicated shell command or script crashes, and recreating a similar situation from the Windows shell is impractical.