OLD | NEW |
1 # Copyright 2011-2012 Free Software Foundation, Inc. | 1 # Copyright 2011-2012 Free Software Foundation, Inc. |
2 # | 2 # |
3 # Contributed by Red Hat, originally written by Keith Seitz. | 3 # Contributed by Red Hat, originally written by Keith Seitz. |
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 # This file is part of the gdb testsuite. | 18 # This file is part of the gdb testsuite. |
19 | 19 |
20 if {[skip_cplus_tests]} { continue } | 20 if {[skip_cplus_tests]} { continue } |
21 | 21 |
22 # Tests for c++/12750/12704 | 22 standard_testfile .cc |
23 set testfile "anon-ns" | |
24 set srcfile $testfile.cc | |
25 | 23 |
26 if {[prepare_for_testing $testfile $testfile $srcfile {c++ debug}]} { | 24 if {[prepare_for_testing $testfile $testfile $srcfile {c++ debug}]} { |
27 return -1 | 25 return -1 |
28 } | 26 } |
29 | 27 |
30 if {![runto_main]} { | 28 if {![runto_main]} { |
31 perror "couldn't run to breakpoint" | 29 perror "couldn't run to breakpoint" |
32 continue | 30 continue |
33 } | 31 } |
34 | 32 |
(...skipping 26 matching lines...) Expand all Loading... |
61 if {[gdb_breakpoint $test]} { | 59 if {[gdb_breakpoint $test]} { |
62 pass "break $test" | 60 pass "break $test" |
63 } | 61 } |
64 if {[gdb_breakpoint '$test']} { | 62 if {[gdb_breakpoint '$test']} { |
65 pass "break '$test'" | 63 pass "break '$test'" |
66 } | 64 } |
67 } | 65 } |
68 | 66 |
69 gdb_exit | 67 gdb_exit |
70 return 0 | 68 return 0 |
OLD | NEW |