| 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 'finish' with | 16 # This file is part of the GDB testsuite. It tests 'finish' with |
| 17 # reverse debugging. | 17 # reverse debugging. |
| 18 | 18 |
| 19 if ![supports_reverse] { | 19 if ![supports_reverse] { |
| 20 return | 20 return |
| 21 } | 21 } |
| 22 | 22 |
| 23 set testfile "finish-reverse" | 23 standard_testfile |
| 24 set srcfile ${testfile}.c | |
| 25 | 24 |
| 26 if { [prepare_for_testing $testfile.exp "$testfile" $srcfile] } { | 25 if { [prepare_for_testing $testfile.exp "$testfile" $srcfile] } { |
| 27 return -1 | 26 return -1 |
| 28 } | 27 } |
| 29 | 28 |
| 30 runto main | 29 runto main |
| 31 | 30 |
| 32 if [supports_process_record] { | 31 if [supports_process_record] { |
| 33 # Activate process record/replay | 32 # Activate process record/replay |
| 34 gdb_test_no_output "record" "Turn on process record" | 33 gdb_test_no_output "record" "Turn on process record" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 219 |
| 221 set breakloc [gdb_get_line_number "VOID FUNC" "$srcfile"] | 220 set breakloc [gdb_get_line_number "VOID FUNC" "$srcfile"] |
| 222 gdb_continue_to_breakpoint "void_func" ".*/$srcfile:$breakloc.*" | 221 gdb_continue_to_breakpoint "void_func" ".*/$srcfile:$breakloc.*" |
| 223 | 222 |
| 224 set test_msg "reverse finish from void_func" | 223 set test_msg "reverse finish from void_func" |
| 225 gdb_test_multiple "finish" "$test_msg" { | 224 gdb_test_multiple "finish" "$test_msg" { |
| 226 -re ".* call to void_func.*$gdb_prompt $" { | 225 -re ".* call to void_func.*$gdb_prompt $" { |
| 227 pass "$test_msg" | 226 pass "$test_msg" |
| 228 } | 227 } |
| 229 } | 228 } |
| OLD | NEW |