This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
testsuite/1680: i386-sse.exp trouble with '{...}'
- From: mec dot gnu at mindspring dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 17 Jun 2004 17:00:38 -0000
- Subject: testsuite/1680: i386-sse.exp trouble with '{...}'
- Reply-to: mec dot gnu at mindspring dot com
>Number: 1680
>Category: testsuite
>Synopsis: i386-sse.exp trouble with '{...}'
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unasigned
>State: open
>Class: test-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 17 17:08:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: mec.gnu@mindspring.com
>Release: gdb HEAD 2004-06-13 05:30:11 UTC
>Organization:
>Environment:
native i686-pc-linux-gnu
red hat 8.0
intel celeron, 800 MHz, SSE, cpuid level 2
gcc 3.3.3
tcl 8.4.6
expect 5.41
dejagnu 1.4.4
>Description:
gdb.arch/i386-sse.exp is barfing out on the "{...}" lines with the stock versions of tcl+expect+dejagnu.
Breakpoint 2, main (argc=1, argv=0xbffff744) at /berman/fsf/_today_/source/gdb/H
EAD/src/gdb/testsuite/gdb.arch/i386-sse.c:71^M
71 puts ("Hi!"); /* first breakpoint here */^M
(gdb) PASS: gdb.arch/i386-sse.exp: continue to breakpoint: continue to first bre
akpoint in main
ERROR: Process no longer exists
UNRESOLVED: gdb.arch/i386-sse.exp: check contents of %xmm0
ERROR: Process no longer exists
UNRESOLVED: gdb.arch/i386-sse.exp: check contents of %xmm1
ERROR: Process no longer exists
UNRESOLVED: gdb.arch/i386-sse.exp: check contents of %xmm2
ERROR: Process no longer exists
>How-To-Repeat:
>Fix:
I tried various forms of quoting the "{...}" lines in gdb_test. This code works:
gdb_test "print \$xmm$r_v4_float" \
".. = \\{$r, $r.25, $r.5, $r.75\\}.*" \
"check contents of %xmm$r"
Given that there are different versions of tcl+expect+dejagnu in the field, and that they are so sensitive to "{" and "\{" and "\\{", it might be a lot simpler just to use "= .$r, $r.25, $r.5, $r.75..*" and not fight with the braces and backslashes.
>Release-Note:
>Audit-Trail:
>Unformatted: