From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19609 invoked by alias); 25 Jul 2013 07:55:52 -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 19597 invoked by uid 89); 25 Jul 2013 07:55:52 -0000 X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_50,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 25 Jul 2013 07:55:51 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1V2GOl-0006er-1z from Yao_Qi@mentor.com ; Thu, 25 Jul 2013 00:55:43 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 25 Jul 2013 00:55:42 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.2.247.3; Thu, 25 Jul 2013 00:55:42 -0700 Message-ID: <51F0D9D2.1090804@codesourcery.com> Date: Thu, 25 Jul 2013 07:55:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Pierre Muller CC: Subject: Re: [PATCH 1/3] New option --cygwin-tty. References: <1374728963-25187-1-git-send-email-yao@codesourcery.com> <1374728963-25187-2-git-send-email-yao@codesourcery.com> <000901ce8909$dd069470$9713bd50$@muller@ics-cnrs.unistra.fr> In-Reply-To: <000901ce8909$dd069470$9713bd50$@muller@ics-cnrs.unistra.fr> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2013-07/txt/msg00601.txt.bz2 On 07/25/2013 03:37 PM, Pierre Muller wrote: > Instead of adding a new command line option, > we might change this into a new command > call > set windows-os-tty on/off > > In the testsuite, this could be > automated by adding "-ex {set windows-os-tty on}" > to INTERNAL_GDBFLAGS. > This is what I do to run the testsuite on > msys for the "set interactive-mode on" > command that I added a while ago to resolve a similar problem. > > This would avoid adding a target specific command line option > and allow to move most of the code to mingw-hdep.c source > where it belongs as it really is mingw specific, no? Yeah, I agree, but I am worried that stdio handlers (such as stdout) should be set before any writes to them, so we should set the flag (cygwin_tty) at the early stage of GDB start up (before command 'set windows-os-tty on' is processed). If it is not a problem, I am fine. I am looking at Corinna's example to see how to detect GDB is running in Cygwin's TTY. If it works, probably we can get rid of this new GDB option completely. -- Yao (齐尧)