OLD | NEW |
1 # Copyright 1997-2001, 2003, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1997-2001, 2003, 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 # display.exp Test display commands | 16 # display.exp Test display commands |
17 # Also do some printing stuff for coverage's sake. | 17 # Also do some printing stuff for coverage's sake. |
18 # | 18 # |
19 if $tracelevel then { | |
20 strace $tracelevel | |
21 } | |
22 | |
23 set testfile display | 19 set testfile display |
24 set srcfile ${testfile}.c | 20 set srcfile ${testfile}.c |
25 set binfile ${objdir}/${subdir}/${testfile} | 21 set binfile ${objdir}/${subdir}/${testfile} |
26 | 22 |
27 | 23 |
28 | 24 |
29 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug nowarnings}] != "" } { | 25 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug nowarnings}] != "" } { |
30 untested display.exp | 26 untested display.exp |
31 return -1 | 27 return -1 |
32 } | 28 } |
33 if [target_info exists gdb_stub] { | |
34 gdb_step_for_stub; | |
35 } | |
36 | 29 |
37 # Preserve the old timeout, and set a new one that should be | 30 # Preserve the old timeout, and set a new one that should be |
38 # sufficient to avoid timing out during this test. | 31 # sufficient to avoid timing out during this test. |
39 set oldtimeout $timeout | 32 set oldtimeout $timeout |
40 set timeout [expr "$timeout + 60"] | 33 set timeout [expr "$timeout + 60"] |
41 verbose "Timeout is now $timeout seconds" 2 | 34 verbose "Timeout is now $timeout seconds" 2 |
42 | 35 |
43 # use this to debug: | 36 # use this to debug: |
44 #log_user 1 | 37 #log_user 1 |
45 | 38 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 205 |
213 # Done! | 206 # Done! |
214 # | 207 # |
215 gdb_exit | 208 gdb_exit |
216 | 209 |
217 # Restore the preserved old timeout value. | 210 # Restore the preserved old timeout value. |
218 set timeout $oldtimeout | 211 set timeout $oldtimeout |
219 verbose "Timeout is now $timeout seconds" 2 | 212 verbose "Timeout is now $timeout seconds" 2 |
220 | 213 |
221 return 0 | 214 return 0 |
OLD | NEW |