From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5261 invoked by alias); 1 Oct 2013 19:42:34 -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 5252 invoked by uid 89); 1 Oct 2013 19:42:34 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Oct 2013 19:42:34 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r91JgQnA028640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 1 Oct 2013 15:42:27 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r91JgP0F022344 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 1 Oct 2013 15:42:26 -0400 Message-ID: <524B25A1.7090103@redhat.com> Date: Tue, 01 Oct 2013 19:42:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Pierre Muller CC: "'gdb-patches'" Subject: Re: [RFC 3/6] mingw-hdep: Add "maint set testuite-mode on/off" command. References: <002901cebaf2$35ec65a0$a1c530e0$@muller@ics-cnrs.unistra.fr> <33207.6293569573$1380225714@news.gmane.org> <87pprufgl8.fsf@fleche.redhat.com> <5245c3a0.a3e2440a.4b98.ffffd279SMTPIN_ADDED_BROKEN@mx.google.com> <5245DE52.8080800@redhat.com> <52482EBA.5010209@codesourcery.com> <5248768B.4090705@redhat.com> <003701cebd67$4c9ea6b0$e5dbf410$@muller@ics-cnrs.unistra.fr> In-Reply-To: <003701cebd67$4c9ea6b0$e5dbf410$@muller@ics-cnrs.unistra.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00068.txt.bz2 On 09/29/2013 03:57 PM, Pierre Muller wrote: > I found out that this patch > > $ cvs diff -up > cvs diff: Diffing . > Index: gdb.exp > =================================================================== > RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v > retrieving revision 1.246 > diff -u -p -r1.246 gdb.exp > --- gdb.exp 20 Sep 2013 21:47:05 -0000 1.246 > +++ gdb.exp 29 Sep 2013 22:50:10 -0000 > @@ -1454,6 +1454,9 @@ proc default_gdb_start { } { > perror "Spawning $GDB failed." > return 1 > } > + if [ishost "*-*-mingw*"] { > + fconfigure $res -translation {crlf crlf} > + } > gdb_expect 360 { > -re "\[\r\n\]$gdb_prompt $" { > verbose "GDB initialized." > > > works... but only for cygwin dejagnu... Yeah, you can't generally run fconfigure on $res here because $res is a an expect spawn_id, not a Tcl file channel. [I *think*] You can get a file channel by using: set fc [exp_open -leaveopen -i $res]; # WARNING: I have zero experience with this. I read about it in the expect man page. fconfigure $fc -translation ... Another thing that might be worth investigating with is expect's built-in stty command. I am planning on playing with mingw testing this week. At the very least, I hope to duplicate some of your problems! Keith