From: Ulrich Weigand Date: Sun, 27 Sep 2009 20:42:40 +0000 (+0000) Subject: * gdb.base/dump.exp: Pass difference of pointer types instead X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f29c03257918ec5859f4cb6c85b531423f182744;p=binutils-gdb.git * gdb.base/dump.exp: Pass difference of pointer types instead of integer types as offset to restore in intarr3.srec case. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 53b744bd39e..159822fbed7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-09-27 Ulrich Weigand + + * 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 * gdb.cp/gdb2495.exp: Skip test on spu*-*-*. diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index 4e616aaace3..ab2ba1b5f0d 100644 --- a/gdb/testsuite/gdb.base/dump.exp +++ b/gdb/testsuite/gdb.base/dump.exp @@ -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"