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 2000, 2002-2005, 2007-2012 Free Software Foundation, Inc. | 3 # Copyright 2000, 2002-2005, 2007-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 [target_info exists gdb,noinferiorio] { | 18 if [target_info exists gdb,noinferiorio] { |
19 verbose "Skipping fileio.exp because of no fileio capabilities." | 19 verbose "Skipping fileio.exp because of no fileio capabilities." |
20 continue | 20 continue |
21 } | 21 } |
22 | 22 |
23 if $tracelevel { | |
24 strace $tracelevel | |
25 } | |
26 | |
27 # | 23 # |
28 # test running programs | 24 # test running programs |
29 # | 25 # |
30 | 26 |
31 set testfile "sizeof" | 27 set testfile "sizeof" |
32 set srcfile ${testfile}.c | 28 set srcfile ${testfile}.c |
33 set binfile ${objdir}/${subdir}/${testfile} | 29 set binfile ${objdir}/${subdir}/${testfile} |
34 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 30 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
35 untested sizeof.exp | 31 untested sizeof.exp |
36 return -1 | 32 return -1 |
37 } | 33 } |
38 | 34 |
39 if [get_compiler_info ${binfile}] { | 35 if [get_compiler_info] { |
40 return -1; | 36 return -1; |
41 } | 37 } |
42 | 38 |
43 gdb_exit | 39 gdb_exit |
44 gdb_start | 40 gdb_start |
45 gdb_reinitialize_dir $srcdir/$subdir | 41 gdb_reinitialize_dir $srcdir/$subdir |
46 gdb_load ${binfile} | 42 gdb_load ${binfile} |
47 | 43 |
48 # | 44 # |
49 # set it up at a breakpoint so we can play with the variable values | 45 # set it up at a breakpoint so we can play with the variable values |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 -re "$gdb_prompt $" { | 149 -re "$gdb_prompt $" { |
154 pass "maint print arch" | 150 pass "maint print arch" |
155 set ok 0 | 151 set ok 0 |
156 } | 152 } |
157 timeout { | 153 timeout { |
158 fail "maint print arch (timeout)" | 154 fail "maint print arch (timeout)" |
159 set ok 0 | 155 set ok 0 |
160 } | 156 } |
161 } | 157 } |
162 } | 158 } |
OLD | NEW |