From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Pedro Alves'" <palves@redhat.com>, "'Yao Qi'" <yao@codesourcery.com>
Cc: "'Tom Tromey'" <tromey@redhat.com>,
"'gdb-patches'" <gdb-patches@sourceware.org>
Subject: RE: [RFC 3/6] mingw-hdep: Add "maint set testuite-mode on/off" command.
Date: Sun, 29 Sep 2013 23:00:00 -0000 [thread overview]
Message-ID: <003701cebd67$4c9ea6b0$e5dbf410$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <5248768B.4090705@redhat.com>
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...
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] {debug 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,
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é : dimanche 29 septembre 2013 20:51
> À : Yao Qi
> Cc : Pierre Muller; 'Tom Tromey'; 'gdb-patches'
> Objet : Re: [RFC 3/6] mingw-hdep: Add "maint set testuite-mode on/off"
> command.
>
> 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?
> >
>
> https://sourceware.org/ml/gdb-patches/2013-09/msg00612.html
>
> --
> Pedro Alves
next prev parent reply other threads:[~2013-09-29 23:00 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 19:54 [RFC 0/6] Handle several character priniting problems (mainly related to mingw hosts) Pierre Muller
2013-09-26 19:57 ` [RFC 1/6] Fix display of tabulation character for mingw hosts Pierre Muller
2013-10-01 1:19 ` Keith Seitz
2013-10-01 8:02 ` [RFC 1/6 -V2] " Pierre Muller
2013-10-22 18:24 ` Keith Seitz
[not found] ` <10182.1932978512$1380614580@news.gmane.org>
2013-11-06 21:24 ` Tom Tromey
2013-11-08 10:26 ` Pierre Muller
2013-09-26 19:57 ` [RFC 2/6] Avoid missing char before incomplete sequence in wchar_iterate Pierre Muller
2013-10-01 1:19 ` Keith Seitz
2013-10-01 12:48 ` Pierre Muller
2013-10-22 18:25 ` Keith Seitz
[not found] ` <33559.6669152894$1380631692@news.gmane.org>
2013-11-06 21:38 ` Tom Tromey
2013-11-08 11:21 ` Pierre Muller
[not found] ` <"007201cedc72$46a78810$d3f69830$@muller"@ics-cnrs.unistra.fr>
2013-11-08 11:43 ` Eli Zaretskii
2013-09-26 20:01 ` [RFC 3/6] mingw-hdep: Add "maint set testuite-mode on/off" command Pierre Muller
2013-09-26 20:03 ` [RFC 4/6] Always set testsuite mode and interactive mode for mingw hosts Pierre Muller
2013-09-26 20:04 ` [RFC 5/6] Handle "set print sevenbit-strings on" in print_wchar Pierre Muller
2013-10-01 1:19 ` Keith Seitz
2013-10-01 13:23 ` Pierre Muller
2013-10-22 18:25 ` Keith Seitz
2013-11-06 21:43 ` Tom Tromey
2013-09-26 20:05 ` [RFC 6/6] Fix remaining failures in gdb.base/printcmds.exp for mingw hosts Pierre Muller
2013-10-01 1:19 ` Keith Seitz
2013-10-01 13:39 ` Pierre Muller
2013-10-22 18:26 ` Keith Seitz
2013-11-06 21:53 ` Tom Tromey
[not found] ` <33207.6293569573$1380225714@news.gmane.org>
2013-09-27 8:07 ` [RFC 3/6] mingw-hdep: Add "maint set testuite-mode on/off" command asmwarrior
2013-09-27 8:11 ` asmwarrior
2013-09-27 12:12 ` Pierre Muller
2013-09-27 15:07 ` Tom Tromey
2013-09-27 17:42 ` Pierre Muller
[not found] ` <5245c3a0.a3e2440a.4b98.ffffd279SMTPIN_ADDED_BROKEN@mx.google.com>
2013-09-27 19:36 ` Pedro Alves
2013-09-27 19:40 ` Pedro Alves
2013-09-27 21:12 ` Pierre Muller
2013-09-29 13:45 ` Yao Qi
2013-09-29 18:51 ` Pedro Alves
2013-09-29 23:00 ` Pierre Muller [this message]
2013-09-30 9:38 ` Pedro Alves
2013-09-30 12:33 ` Yao Qi
2013-10-01 19:42 ` Keith Seitz
[not found] ` <10148.9390749068$1380495630@news.gmane.org>
2013-09-29 23:54 ` asmwarrior
2013-09-30 19:23 ` Tom Tromey
2013-09-30 19:34 ` Eli Zaretskii
2013-09-30 19:45 ` Pedro Alves
2013-09-30 22:41 ` Pierre Muller
[not found] ` <11813.6176527061$1380225854@news.gmane.org>
2013-09-27 15:13 ` [RFC 5/6] Handle "set print sevenbit-strings on" in print_wchar Tom Tromey
2013-09-27 15:23 ` Pierre Muller
[not found] ` <9177.88728042996$1380225912@news.gmane.org>
2013-11-06 21:50 ` [RFC 6/6] Fix remaining failures in gdb.base/printcmds.exp for mingw hosts Tom Tromey
[not found] <"002901cebaf2$35ec65a0$a1c530e0$@muller"@ics-cnrs.unistra.fr>
[not found] ` <"003201cebaf3$338a8b60$9a9fa220$@muller"@ics-cnrs.unistra.fr>
2013-09-26 20:08 ` [RFC 3/6] mingw-hdep: Add "maint set testuite-mode on/off" command Eli Zaretskii
2013-09-26 20:13 ` Pierre Muller
[not found] ` <"003e01cebaf4$e97923e0$bc6b6ba0$@muller"@ics-cnrs.unistra.fr>
2013-09-27 5:52 ` Eli Zaretskii
2013-09-27 6:53 ` Pierre Muller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003701cebd67$4c9ea6b0$e5dbf410$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=tromey@redhat.com \
--cc=yao@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).