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. | 16 # This file is part of the GDB testsuite. |
17 # | 17 # |
18 # 'reverse-finish' used to have a bug where user breakpoints set at | 18 # 'reverse-finish' used to have a bug where user breakpoints set at |
19 # the functions entry would be ignored. Make sure the bug doesn't | 19 # the functions entry would be ignored. Make sure the bug doesn't |
20 # reappear. | 20 # reappear. |
21 | 21 |
22 if ![supports_reverse] { | 22 if ![supports_reverse] { |
23 return | 23 return |
24 } | 24 } |
25 | 25 |
26 set testfile "finish-reverse-bkpt" | 26 standard_testfile finish-reverse.c |
27 set srcfile finish-reverse.c | |
28 | 27 |
29 if { [prepare_for_testing $testfile.exp "$testfile" $srcfile] } { | 28 if { [prepare_for_testing $testfile.exp "$testfile" $srcfile] } { |
30 return -1 | 29 return -1 |
31 } | 30 } |
32 | 31 |
33 if ![runto_main] then { | 32 if ![runto_main] then { |
34 fail "Can't run to main" | 33 fail "Can't run to main" |
35 return 0 | 34 return 0 |
36 } | 35 } |
37 | 36 |
(...skipping 10 matching lines...) Expand all Loading... |
48 | 47 |
49 gdb_test "break \*void_func" \ | 48 gdb_test "break \*void_func" \ |
50 "Breakpoint $decimal at .*" \ | 49 "Breakpoint $decimal at .*" \ |
51 "set breakpoint at void_func's entry" | 50 "set breakpoint at void_func's entry" |
52 | 51 |
53 gdb_test "reverse-finish" \ | 52 gdb_test "reverse-finish" \ |
54 ".*Breakpoint .*, void_func.*" \ | 53 ".*Breakpoint .*, void_func.*" \ |
55 "reverse-finish from void_func trips breakpoint at entry" | 54 "reverse-finish from void_func trips breakpoint at entry" |
56 | 55 |
57 gdb_test "frame" "#0 void_func.*" "no spurious proceed after breakpoint stop" | 56 gdb_test "frame" "#0 void_func.*" "no spurious proceed after breakpoint stop" |
OLD | NEW |