OLD | NEW |
1 # Copyright (C) 1997-1998, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright (C) 1997-1998, 2007-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 if $tracelevel then { | |
17 strace $tracelevel | |
18 } | |
19 | |
20 | 16 |
21 set testfile langs | 17 set testfile langs |
22 set binfile ${objdir}/${subdir}/${testfile} | 18 set binfile ${objdir}/${subdir}/${testfile} |
23 | 19 |
24 if [is_remote host] { | 20 if [is_remote host] { |
25 remote_download host ${srcdir}/${subdir}/langs1.f | 21 remote_download host ${srcdir}/${subdir}/langs1.f |
26 remote_download host ${srcdir}/${subdir}/langs2.cxx | 22 remote_download host ${srcdir}/${subdir}/langs2.cxx |
27 } | 23 } |
28 | 24 |
29 | 25 |
(...skipping 17 matching lines...) Expand all Loading... |
47 return -1 | 43 return -1 |
48 } | 44 } |
49 | 45 |
50 set oldtimeout $timeout | 46 set oldtimeout $timeout |
51 set timeout 10 | 47 set timeout 10 |
52 | 48 |
53 | 49 |
54 | 50 |
55 # Create and source the file that provides information about the compiler | 51 # Create and source the file that provides information about the compiler |
56 # used to compile the test case. | 52 # used to compile the test case. |
57 if [get_compiler_info ${binfile}] { | 53 if [get_compiler_info] { |
58 return -1; | 54 return -1; |
59 } | 55 } |
60 | 56 |
61 gdb_exit | 57 gdb_exit |
62 gdb_start | 58 gdb_start |
63 gdb_reinitialize_dir $srcdir/$subdir | 59 gdb_reinitialize_dir $srcdir/$subdir |
64 gdb_load $binfile | 60 gdb_load $binfile |
65 | 61 |
66 gdb_test_multiple "b langs0" "break on nonexistent function in langs.exp" { | 62 gdb_test_multiple "b langs0" "break on nonexistent function in langs.exp" { |
67 -re "Function \"langs0\" not defined\..*Make breakpoint pending on futur
e shared library load.*y or .n.. $" { | 63 -re "Function \"langs0\" not defined\..*Make breakpoint pending on futur
e shared library load.*y or .n.. $" { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 if [runto csub] then { | 150 if [runto csub] then { |
155 gdb_test "set lang minimal" \ | 151 gdb_test "set lang minimal" \ |
156 "Warning: the current language does not match this frame." \ | 152 "Warning: the current language does not match this frame." \ |
157 "set lang to minimal" | 153 "set lang to minimal" |
158 | 154 |
159 gdb_test "print x" " = 5000" "print parameter value" | 155 gdb_test "print x" " = 5000" "print parameter value" |
160 } | 156 } |
161 | 157 |
162 set timeout $oldtimeout | 158 set timeout $oldtimeout |
163 return 0 | 159 return 0 |
OLD | NEW |