From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24691 invoked by alias); 2 Aug 2013 06:10:12 -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 24670 invoked by uid 89); 2 Aug 2013 06:10:11 -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 mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 02 Aug 2013 06:10:10 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MQW00B003QKCY00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Fri, 02 Aug 2013 09:10:02 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MQW00B0G3SP5T60@a-mtaout20.012.net.il>; Fri, 02 Aug 2013 09:10:02 +0300 (IDT) Date: Fri, 02 Aug 2013 06:10:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 1/3] Detect GDB is in cygwin In-reply-to: <51FB1E94.5050508@codesourcery.com> To: Yao Qi Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ehaczkqd.fsf@gnu.org> References: <1375087546-22591-1-git-send-email-yao@codesourcery.com> <1375087546-22591-2-git-send-email-yao@codesourcery.com> <83txjdxtpd.fsf@gnu.org> <51F786CB.3020700@codesourcery.com> <83a9l4xdst.fsf@gnu.org> <51FA137B.6070207@codesourcery.com> <83r4edz7z7.fsf@gnu.org> <51FB1E94.5050508@codesourcery.com> X-SW-Source: 2013-08/txt/msg00060.txt.bz2 > Date: Fri, 2 Aug 2013 10:51:00 +0800 > From: Yao Qi > CC: > > On 08/02/2013 12:33 AM, Eli Zaretskii wrote: > > Thanks. I have just one more request: can you verify that GDB will > > not think it runs in a Cygwin pty when it is run from an MSYS Bash > > window? (Since MSYS is a fork of an old version of Cygwin, it's > > possible that it uses the same template for however it sets up the > > shell window.) > > I run GDB in MSYS bash, and GDB thinks it runs in a Cygwin pty > unfortunately. As you said, the file name template is the same. I > add the following changes in using_cygwin_pty to differentiate MSYS > and Cygwin. > > const char *msystem = getenv ("MSYSTEM"); Thanks. I have no further comments to this patch.