OSDN Git Service

* gdb.base/dump.exp: Pass difference of pointer types instead
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 29 Sep 2009 00:36:49 +0000 (00:36 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 29 Sep 2009 00:36:49 +0000 (00:36 +0000)
of integer types as offset to restore in intarr3.srec case.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/dump.exp

index 7a82b6e..00fecbf 100644 (file)
@@ -1,5 +1,10 @@
 2009-09-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
+       * gdb.base/dump.exp: Pass difference of pointer types instead
+       of integer types as offset to restore in intarr3.srec case.
+
+2009-09-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
        * gdb.cp/gdb2495.exp: Skip test on spu*-*-*.
 
 2009-09-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
index 4e616aa..ab2ba1b 100644 (file)
@@ -504,7 +504,7 @@ if ![string compare $is64bitonly "no"] then {
 
   # restore with expressions 
   test_restore_saved_value \
-       "intarr3.srec ${array2_start}-${array_start} &intarray\[3\] &intarray\[4\]" \
+       "intarr3.srec (char*)${array2_start}-(char*)${array_start} &intarray\[3\] &intarray\[4\]" \
        "array partial with expressions" 4 "intarray2\[3\]"
 
   gdb_test "print intarray2\[2\] == 0" " = 1" "element 2 not changed, == 4"