diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-09-27 20:42:40 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-09-27 20:42:40 +0000 |
commit | f29c03257918ec5859f4cb6c85b531423f182744 (patch) | |
tree | badd5b6843a92b020e6506639e0c707542b30081 | |
parent | fcb34849dfdc57ebdd4e8932aaf2b3d38e83db38 (diff) | |
download | gdb-f29c03257918ec5859f4cb6c85b531423f182744.zip gdb-f29c03257918ec5859f4cb6c85b531423f182744.tar.gz gdb-f29c03257918ec5859f4cb6c85b531423f182744.tar.bz2 |
* gdb.base/dump.exp: Pass difference of pointer types instead
of integer types as offset to restore in intarr3.srec case.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/dump.exp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 53b744b..159822f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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*-*-*. 2009-09-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index 4e616aa..ab2ba1b 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" |