OLD | NEW |
1 # This testcase is part of GDB, the GNU debugger. | 1 # This testcase is part of GDB, the GNU debugger. |
2 | 2 |
3 # Copyright 2008-2012 Free Software Foundation, Inc. | 3 # Copyright 2008-2012 Free Software Foundation, Inc. |
4 | 4 |
5 # This program is free software; you can redistribute it and/or modify | 5 # This program is free software; you can redistribute it and/or modify |
6 # it under the terms of the GNU General Public License as published by | 6 # it under the terms of the GNU General Public License as published by |
7 # the Free Software Foundation; either version 3 of the License, or | 7 # the Free Software Foundation; either version 3 of the License, or |
8 # (at your option) any later version. | 8 # (at your option) any later version. |
9 # | 9 # |
10 # This program is distributed in the hope that it will be useful, | 10 # This program is distributed in the hope that it will be useful, |
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 # GNU General Public License for more details. | 13 # GNU General Public License for more details. |
14 # | 14 # |
15 # You should have received a copy of the GNU General Public License | 15 # You should have received a copy of the GNU General Public License |
16 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 |
18 if $tracelevel then { | |
19 strace $tracelevel | |
20 } | |
21 | |
22 set testfile step-break | 18 set testfile step-break |
23 set srcfile ${testfile}.c | 19 set srcfile ${testfile}.c |
24 set binfile ${objdir}/${subdir}/${testfile} | 20 set binfile ${objdir}/${subdir}/${testfile} |
25 | 21 |
26 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu
g}] != "" } { | 22 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu
g}] != "" } { |
27 untested step-break.exp | 23 untested step-break.exp |
28 return -1 | 24 return -1 |
29 } | 25 } |
30 | 26 |
31 gdb_exit | 27 gdb_exit |
(...skipping 16 matching lines...) Expand all Loading... |
48 "run until breakpoint set at a line number" | 44 "run until breakpoint set at a line number" |
49 | 45 |
50 gdb_test "next 2" ".*place2.*" "next 2 (1)" | 46 gdb_test "next 2" ".*place2.*" "next 2 (1)" |
51 gdb_test "next 2" ".*place3.*" "next 2 (2)" | 47 gdb_test "next 2" ".*place3.*" "next 2 (2)" |
52 gdb_test "next 2" ".*place2.*" "next 2 (3)" | 48 gdb_test "next 2" ".*place2.*" "next 2 (3)" |
53 gdb_test "next 2" ".*place3.*" "next 2 (4)" | 49 gdb_test "next 2" ".*place3.*" "next 2 (4)" |
54 gdb_test "next 2" ".*place2.*" "next 2 (5)" | 50 gdb_test "next 2" ".*place2.*" "next 2 (5)" |
55 gdb_test "next 2" ".*place3.*" "next 2 (6)" | 51 gdb_test "next 2" ".*place3.*" "next 2 (6)" |
56 | 52 |
57 return 0 | 53 return 0 |
OLD | NEW |