| OLD | NEW |
| 1 # Copyright 2002, 2004, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2002, 2004, 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 # This file was written by Andrew Cagney (cagney at redhat dot com), | 16 # This file was written by Andrew Cagney (cagney at redhat dot com), |
| 17 # derived from xfullpath.exp (written by Joel Brobecker), derived from | 17 # derived from xfullpath.exp (written by Joel Brobecker), derived from |
| 18 # selftest.exp (written by Rob Savoye). | 18 # selftest.exp (written by Rob Savoye). |
| 19 | 19 |
| 20 if $tracelevel then { | |
| 21 strace $tracelevel | |
| 22 } | |
| 23 | |
| 24 | 20 |
| 25 # are we on a target board | 21 # are we on a target board |
| 26 if { [is_remote target] || ![isnative] } then { | 22 if { [is_remote target] || ![isnative] } then { |
| 27 return | 23 return |
| 28 } | 24 } |
| 29 | 25 |
| 26 if [target_info exists gdb,noinferiorio] { |
| 27 verbose "Skipping because of no inferiorio capabilities." |
| 28 return |
| 29 } |
| 30 |
| 30 proc setup_test { executable } { | 31 proc setup_test { executable } { |
| 31 global gdb_prompt | 32 global gdb_prompt |
| 32 global timeout | 33 global timeout |
| 33 | 34 |
| 34 # load yourself into the debugger | 35 # load yourself into the debugger |
| 35 # This can take a relatively long time, particularly for testing where | 36 # This can take a relatively long time, particularly for testing where |
| 36 # the executable is being accessed over a network, or where gdb does not | 37 # the executable is being accessed over a network, or where gdb does not |
| 37 # support partial symbols for a particular target and has to load the | 38 # support partial symbols for a particular target and has to load the |
| 38 # entire symbol table. Set the timeout to 10 minutes, which should be | 39 # entire symbol table. Set the timeout to 10 minutes, which should be |
| 39 # adequate for most environments (it *has* timed out with 5 min on a | 40 # adequate for most environments (it *has* timed out with 5 min on a |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 return -1 | 261 return -1 |
| 261 } | 262 } |
| 262 | 263 |
| 263 test_initial_complaints | 264 test_initial_complaints |
| 264 test_serial_complaints | 265 test_serial_complaints |
| 265 test_short_complaints | 266 test_short_complaints |
| 266 test_empty_complaints | 267 test_empty_complaints |
| 267 | 268 |
| 268 gdb_exit; | 269 gdb_exit; |
| 269 catch "remote_file host delete $file"; | 270 catch "remote_file host delete $file"; |
| OLD | NEW |