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]

[committed] Fix long_long.exp testcase problem on spu


Hello,

yet another test case fix: long_long.exp tests output in various
formats, including pointer (/a).  However, it is possible (and 
happens on spu) that the value, interpreted as pointer, happens
to match a symbol in the inferior.  This causes output like:

p/a *(short *)s^M
$40 = 0x123 <frame_dummy+27>^M

which fails the test pattern.

Fixed by adding an optional <...> to the pattern.

Tested on spu-elf, committed to mainline.

Bye,
Ulrich

ChangeLog:

	* gdb.base/long_long.exp: Accept optional symbol name in <...>
	for /a format output.


Index: gdb/testsuite/gdb.base/long_long.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/long_long.exp,v
retrieving revision 1.20
diff -u -p -r1.20 long_long.exp
--- gdb/testsuite/gdb.base/long_long.exp	9 Jan 2007 17:59:11 -0000	1.20
+++ gdb/testsuite/gdb.base/long_long.exp	10 Mar 2007 01:08:05 -0000
@@ -229,7 +229,7 @@ gdb_test_char "p/d *(char *)c" "1"
 gdb_test_char "p/u *(char *)c" "1"
 gdb_test_char "p/o *(char *)c" "01"
 gdb_test_char "p/t *(char *)c" "1"
-gdb_test_char "p/a *(char *)c" "0x1"
+gdb_test_char "p/a *(char *)c" "0x1( <.*>)?"
 gdb_test_char "p/f *(char *)c" "1"
 gdb_test_char "p/c *(char *)c" "1 '.001'"
 
@@ -238,7 +238,7 @@ gdb_test_short "p/d *(short *)s" "" "291
 gdb_test_short "p/u *(short *)s" "" "291" ""
 gdb_test_short "p/o *(short *)s" "" "0443" ""
 gdb_test_short "p/t *(short *)s" "" "100100011" ""
-gdb_test_short "p/a *(short *)s" "" "0x123" ""
+gdb_test_short "p/a *(short *)s" "" "0x123( <.*>)?" ""
 gdb_test_short "p/f *(short *)s" "" "291" ""
 gdb_test_short "p/c *(short *)s" "" "35 '.'" ""
 
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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