This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[Committed] Obvious fix to testsuite/gdb.arch/altivec-regs.exp
- From: Paul Gilliam <pgilliam at us dot ibm dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 13 Sep 2005 15:10:02 -0700
- Subject: [Committed] Obvious fix to testsuite/gdb.arch/altivec-regs.exp
- Reply-to: pgilliam at us dot ibm dot com
This fixes one of the tests in gdb.arch/altivec-regs.exp.
The pattern is matching the print out of a vector register and
assumes that zero valued characters will print as '\0' in the
v16_int8 varient. In the actual print out, these are printed
as '\000'. This is keeping with how zero's are printed in a
string with a known length:
(gdb) p str
$1 = "thi\000nk!! ab\000ut that"
The original pattern assumed it would be printed as would a single
charager:
(gdb) p str[3]
$2 = 0 '\0'
I think this is an obvious fix and have committed it as such.
2005-09-13 Paul Gilliam <pgilliam@us.ibm.com>
* gdb.arch/altivec-regs.exp: Adjust "print $vx<i>" tests to match
output.
Index: gdb/testsuite/gdb.arch/altivec-regs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-regs.exp,v
retrieving revision 1.4
diff -a -u -r1.4 altivec-regs.exp
--- gdb/testsuite/gdb.arch/altivec-regs.exp 3 May 2005 00:41:49 -0000 1.4
+++ gdb/testsuite/gdb.arch/altivec-regs.exp 13 Sep 2005 18:54:58 -0000
@@ -123,9 +123,9 @@
# the way gdb works.
if {$endianness == "big"} {
- set decimal_vector ".uint128 = 0x00000001000000010000000100000001, v4_float = .1.*e-45, 1.*e-45, 1.*e-45, 1.*e-45., v4_int32 = .1, 1, 1, 1., v8_int16 = .0, 1, 0, 1, 0, 1, 0, 1., v16_int8 = ..0.0.0.001.0.0.0.001.0.0.0.001.0.0.0.001.."
+ set decimal_vector ".uint128 = 0x00000001000000010000000100000001, v4_float = .1.*e-45, 1.*e-45, 1.*e-45, 1.*e-45., v4_int32 = .1, 1, 1, 1., v8_int16 = .0, 1, 0, 1, 0, 1, 0, 1., v16_int8 = ..000.000.000.001.000.000.000.001.000.000.000.001.000.000.000.001.."
} else {
- set decimal_vector ".uint128 = 0x00000001000000010000000100000001, v4_float = .1.*e-45, 1.*e-45, 1.*e-45, 1.*e-45., v4_int32 = .1, 1, 1, 1., v8_int16 = .1, 0, 1, 0, 1, 0, 1, 0., v16_int8 = ..001.0.0.0.001.0.0.0.001.0.0.0.001.0.0.."
+ set decimal_vector ".uint128 = 0x00000001000000010000000100000001, v4_float = .1.*e-45, 1.*e-45, 1.*e-45, 1.*e-45., v4_int32 = .1, 1, 1, 1., v8_int16 = .1, 0, 1, 0, 1, 0, 1, 0., v16_int8 = ..001.000.000.000.001.000.000.000.001.000.000.000.001.000.000.."
}
for {set i 0} {$i < 32} {incr i 1} {