This is the mail archive of the gdb-patches@sources.redhat.com 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]

RFA: e500-regs.exp: fix little-endian 'print' patterns


Without this patch, all the 'print ev*' tests fail when the test
program is compiled with -mlittle.  With the patch, they all pass.

Tested on i686-pc-linux-gnu host with the following targets:
    powerpc-sim/-mlittle
    powerpc-sim/-mbig

2004-06-14  Jim Blandy  <jimb@redhat.com>

	* gdb.arch/e500-regs.exp: Fix up 'print' pattern for the little-
	endian case.

Index: gdb/testsuite/gdb.arch/e500-regs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/e500-regs.exp,v
retrieving revision 1.1
diff -c -p -r1.1 e500-regs.exp
*** gdb/testsuite/gdb.arch/e500-regs.exp	17 Mar 2003 20:06:16 -0000	1.1
--- gdb/testsuite/gdb.arch/e500-regs.exp	14 Jun 2004 21:40:43 -0000
*************** for {set i 0} {$i < 32} {incr i 1} {
*** 112,118 ****
  if {$endianness == "big"} {
       set decimal_vector ".uint64 = 4294967297, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .0, 1, 0, 1., v8_int8 = ..000.000.000.001.000.000.000.001.."
  } else {
!      set decimal_vector ".uint64 = 0x0000000100000001, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .1, 0, 1, 0., v8_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} {
--- 112,118 ----
  if {$endianness == "big"} {
       set decimal_vector ".uint64 = 4294967297, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .0, 1, 0, 1., v8_int8 = ..000.000.000.001.000.000.000.001.."
  } else {
!      set decimal_vector ".uint64 = 4294967297, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .1, 0, 1, 0., v8_int8 = ..001.000.000.000.001.000.000.."
  }
  
  for {set i 0} {$i < 32} {incr i 1} {


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