From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27560 invoked by alias); 29 Sep 2013 23:00:20 -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 27548 invoked by uid 89); 29 Sep 2013 23:00:20 -0000 Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.222.213) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 29 Sep 2013 23:00:20 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,MSGID_MULTIPLE_AT autolearn=no version=3.3.2 X-HELO: mailhost.u-strasbg.fr Received: from mailhost.u-strasbg.fr (localhost [127.0.0.1]) by antispam (Postfix) with ESMTP id 575B1C0FEB; Mon, 30 Sep 2013 01:00:14 +0200 (CEST) Received: from mailhost.u-strasbg.fr (localhost [127.0.0.1]) by antivirus (Postfix) with ESMTP id 2AF8BC0CA6; Mon, 30 Sep 2013 00:57:49 +0200 (CEST) Received: from md15.u-strasbg.fr (md15.u-strasbg.fr [130.79.200.204]) by mr3.u-strasbg.fr (Postfix) with ESMTP id DBBD6C11AF; Mon, 30 Sep 2013 00:57:43 +0200 (CEST) Received: from ms11.u-strasbg.fr (ms11.u-strasbg.fr [130.79.204.111]) by md15.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id r8TMvgtI030633 ; Mon, 30 Sep 2013 00:57:42 +0200 (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (Authenticated sender: mullerp) by ms11.u-strasbg.fr (Postfix) with ESMTPSA id B2B641FD90; Mon, 30 Sep 2013 00:57:38 +0200 (CEST) From: "Pierre Muller" To: "'Pedro Alves'" , "'Yao Qi'" Cc: "'Tom Tromey'" , "'gdb-patches'" 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> In-Reply-To: <5248768B.4090705@redhat.com> Subject: RE: [RFC 3/6] mingw-hdep: Add "maint set testuite-mode on/off" command. Date: Sun, 29 Sep 2013 23:00:00 -0000 Message-ID: <003701cebd67$4c9ea6b0$e5dbf410$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-09/txt/msg00997.txt.bz2 I found out that this patch $ cvs diff -up cvs diff: Diffing . Index: gdb.exp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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... It doesn't on the dejagnu I found for msys system :( After a looong debugging, it seems to turn out to be because (on msys)$ runtest --version WARNING: Couldn't find the global config file. Expect version is 5.26 Tcl version is 8.4 Framework version is 1.4.2.x while on cygwin: $ runtest --version Expect version is 5.45 Tcl version is 8.5 Framework version is 1.5 Which leads to the fact that remote_spawn directly calls spawn in 5.26, while it uses open command in version 5.45... The problem is that only the open command returns a channeled suitable for fconfigure... which leads to the following error on msys: ERROR: tcl error sourcing ../../../puresrc/gdb/testsuite/gdb.base/co1.exp. ERROR: can not find channel named "6" while executing "fconfigure $res -translation {crlf crlf}" invoked from within "if [ishost "*-*-mingw*"] { fconfigure $res -translation {crlf crlf} }" (procedure "default_gdb_start" line 37) invoked from within "default_gdb_start" (procedure "gdb_start" line 2) invoked from within "gdb_start" (procedure "clean_restart" line 7) invoked from within "clean_restart $executable" (procedure "prepare_for_testing" line 6) invoked from within "prepare_for_testing $testfile.exp $testfile [list $srcfile $srcfile2] {de= bug n owarnings}" (file "../../../puresrc/gdb/testsuite/gdb.base/co1.exp" line 1) ("uplevel" body line 1) invoked from within "catch "uplevel #0 source $test_file_name"" Any suggestions, other that throwing away the old dejagnu ... Of course, if someone as a more recent dejagnu for msys,=20 I am all for it! Pierre Muller > -----Message d'origine----- > De : gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Pedro Alves > Envoy=C3=A9 : dimanche 29 septembre 2013 20:51 > =C3=80 : Yao Qi > Cc : Pierre Muller; 'Tom Tromey'; 'gdb-patches' > Objet : Re: [RFC 3/6] mingw-hdep: Add "maint set testuite-mode on/off" > command. >=20 > On 09/29/2013 02:44 PM, Yao Qi wrote: > > On 09/28/2013 03:36 AM, Pedro Alves wrote: > >> There was also a promising tcl/expect know that is supposed to > >> disable the unnecessary \n -> \r\n translation... > > > > What is that? Can you elaborate? > > >=20 > https://sourceware.org/ml/gdb-patches/2013-09/msg00612.html >=20 > -- > Pedro Alves