From: Ulrich Weigand Date: Tue, 29 Sep 2009 00:36:49 +0000 (+0000) Subject: * gdb.base/dump.exp: Pass difference of pointer types instead X-Git-Tag: gdb_7_0-2009-10-06-release~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94a62e1baea99956f3a3a6d7ec356866fdfef344;p=thirdparty%2Fbinutils-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 7a82b6ea5ee..00fecbf5b57 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-09-28 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-28 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"