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-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f3d6e6d5184a237008479ee143ca61afd8072ec5;p=pf3gnuchains%2Fpf3gnuchains3x.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 7a82b6ea5e..00fecbf5b5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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*-*-*. 2009-09-28 Ulrich Weigand diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index 4e616aaace..ab2ba1b5f0 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"