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

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

index 53b744bd39e106f3d15854ac6edf8ab5912a7a7b..159822fbed72fdbf344a37999bc5a3a531240db1 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-27  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-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * gdb.cp/gdb2495.exp: Skip test on spu*-*-*.
index 4e616aaace33559f668701737b9c603ad1796749..ab2ba1b5f0d3a0279321216ee021ef37998a18b2 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"