This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH,committed] fix altivec-{abi,regs}.exp due to printing changes


Recent changes to the way frame arguments were printed have caused some
AltiVec-related tests to start failing.  The reason for this is because
the regexes for the tests expect the frame arguments (which include
structures of vectors) to be printed in full.  Nowadays, however, those
frame arguments get elided as `...', which causes the tests to fail.
The patch below fixes the tests by ensuring we print complete frame
arguments for the tests in question.

Approved offline by Daniel Jacobowitz.  Tested with cross to
powerpc-linux-gnu.

-Nathan

2009-08-11  Nathan Froyd  <froydnj@codesourcery.com>

	* gdb.arch/altivec-abi.exp (altivec_abi_tests): Turn on printing of
	all frame arguments.
	* gdb.arch/altivec-regs.exp: Likewise.

Index: gdb.arch/altivec-abi.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-abi.exp,v
retrieving revision 1.16
diff -u -u -r1.16 altivec-abi.exp
--- gdb.arch/altivec-abi.exp	3 Jan 2009 05:58:03 -0000	1.16
+++ gdb.arch/altivec-abi.exp	11 Aug 2009 19:12:56 -0000
@@ -73,6 +73,7 @@
 	return -1
     }
 
+    gdb_test "set print frame-arguments all"
     gdb_test "set powerpc vector-abi $force_abi"
 
     gdb_test "b marker" "Breakpoint 2 at.*file.*altivec-abi.c, line \[0-9\]+." "break marker"
Index: gdb.arch/altivec-regs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-regs.exp,v
retrieving revision 1.21
diff -u -u -r1.21 altivec-regs.exp
--- gdb.arch/altivec-regs.exp	3 Jan 2009 05:58:03 -0000	1.21
+++ gdb.arch/altivec-regs.exp	11 Aug 2009 19:12:56 -0000
@@ -70,6 +70,8 @@
     gdb_suppress_tests
 }
 
+gdb_test "set print frame-arguments all"
+
 # set all the registers integer portions to 1
 for {set i 0} {$i < 32} {incr i 1} {
         for {set j 0} {$j < 4} {incr j 1} {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]