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 /gdb/testsuite/gdb.base/dump.exp | |
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/dump.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/dump.exp | 2 |
1 files changed, 1 insertions, 1 deletions
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" |