OLD | NEW |
1 # Copyright 2008-2012 Free Software Foundation, Inc. | 1 # Copyright 2008-2012 Free Software Foundation, Inc. |
2 | 2 |
3 # This program is free software; you can redistribute it and/or modify | 3 # This program is free software; you can redistribute it and/or modify |
4 # it under the terms of the GNU General Public License as published by | 4 # it under the terms of the GNU General Public License as published by |
5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
6 # (at your option) any later version. | 6 # (at your option) any later version. |
7 # | 7 # |
8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
12 # | 12 # |
13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
14 # along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
15 | 15 |
16 # This file is part of the GDB testsuite. It tests reverse stepping. | 16 # This file is part of the GDB testsuite. It tests reverse stepping. |
17 # Lots of code borrowed from "step-test.exp". | 17 # Lots of code borrowed from "step-test.exp". |
18 | 18 |
19 # | 19 # |
20 # Test step and next in reverse | 20 # Test step and next in reverse |
21 # | 21 # |
22 | 22 |
23 if ![supports_reverse] { | 23 if ![supports_reverse] { |
24 return | 24 return |
25 } | 25 } |
26 | 26 |
27 set testfile "step-reverse" | 27 standard_testfile |
28 set srcfile ${testfile}.c | |
29 | 28 |
30 if { [prepare_for_testing $testfile.exp $testfile $srcfile] } { | 29 if { [prepare_for_testing $testfile.exp $testfile $srcfile] } { |
31 return -1 | 30 return -1 |
32 } | 31 } |
33 | 32 |
34 runto main | 33 runto main |
35 | 34 |
36 if [supports_process_record] { | 35 if [supports_process_record] { |
37 # Activate process record/replay | 36 # Activate process record/replay |
38 gdb_test_no_output "record" "Turn on process record" | 37 gdb_test_no_output "record" "Turn on process record" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 gdb_test "step" ".*STEP TEST 1.*" "reverse step test 2" | 242 gdb_test "step" ".*STEP TEST 1.*" "reverse step test 2" |
244 gdb_test "next" ".*NEXT TEST 1.*" "reverse next test 2" | 243 gdb_test "next" ".*NEXT TEST 1.*" "reverse next test 2" |
245 | 244 |
246 | 245 |
247 | 246 |
248 # Finish test by running forward to the end. | 247 # Finish test by running forward to the end. |
249 # FIXME return to this later... | 248 # FIXME return to this later... |
250 # gdb_test_no_output "set exec-dir forward" "set forward execution" | 249 # gdb_test_no_output "set exec-dir forward" "set forward execution" |
251 # gdb_continue_to_end "step-reverse.exp" | 250 # gdb_continue_to_end "step-reverse.exp" |
252 | 251 |
OLD | NEW |