OLD | NEW |
1 # Copyright (C) 1998, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright (C) 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 # test special commands | 17 # test special commands |
22 # | 18 # |
23 | 19 |
24 if { [skip_hp_tests] } then { continue } | 20 if { [skip_hp_tests] } then { continue } |
25 | 21 |
26 set testfile "run" | 22 set testfile "run" |
27 set srcfile ${testfile}.c | 23 set srcfile ${testfile}.c |
28 set binfile ${objdir}/${subdir}/${testfile} | 24 set binfile ${objdir}/${subdir}/${testfile} |
29 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | 25 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { |
30 untested watch-cmd.exp | 26 untested watch-cmd.exp |
31 return -1 | 27 return -1 |
32 | 28 |
33 } | 29 } |
34 | 30 |
35 if [get_compiler_info ${binfile}] { | 31 if [get_compiler_info] { |
36 return -1; | 32 return -1; |
37 } | 33 } |
38 if { $gcc_compiled } then { continue } | 34 if { $gcc_compiled } then { continue } |
39 | 35 |
40 | 36 |
41 gdb_exit | 37 gdb_exit |
42 gdb_start | 38 gdb_start |
43 delete_breakpoints | 39 delete_breakpoints |
44 gdb_reinitialize_dir $srcdir/$subdir | 40 gdb_reinitialize_dir $srcdir/$subdir |
45 gdb_load ${binfile} | 41 gdb_load ${binfile} |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 139 |
144 | 140 |
145 | 141 |
146 | 142 |
147 | 143 |
148 | 144 |
149 | 145 |
150 | 146 |
151 | 147 |
152 | 148 |
OLD | NEW |