| OLD | NEW |
| 1 # Copyright (C) 1992, 1994-1995, 2007-2012 Free Software Foundation, | 1 # Copyright (C) 1992, 1994-1995, 2007-2012 Free Software Foundation, |
| 2 # Inc. | 2 # Inc. |
| 3 | 3 |
| 4 # This program is free software; you can redistribute it and/or modify | 4 # This program is free software; you can redistribute it and/or modify |
| 5 # it under the terms of the GNU General Public License as published by | 5 # it under the terms of the GNU General Public License as published by |
| 6 # the Free Software Foundation; either version 3 of the License, or | 6 # the Free Software Foundation; either version 3 of the License, or |
| 7 # (at your option) any later version. | 7 # (at your option) any later version. |
| 8 # | 8 # |
| 9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
| 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 # GNU General Public License for more details. | 12 # GNU General Public License for more details. |
| 13 # | 13 # |
| 14 # You should have received a copy of the GNU General Public License | 14 # You should have received a copy of the GNU General Public License |
| 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 16 | 16 |
| 17 # This file was written by Fred Fish. (fnf@cygnus.com) | 17 # This file was written by Fred Fish. (fnf@cygnus.com) |
| 18 | 18 |
| 19 if $tracelevel then { | |
| 20 strace $tracelevel | |
| 21 } | |
| 22 | |
| 23 if { [skip_hp_tests] } then { continue } | 19 if { [skip_hp_tests] } then { continue } |
| 24 | 20 |
| 25 global usestubs | |
| 26 | |
| 27 # | 21 # |
| 28 # test running programs | 22 # test running programs |
| 29 # | 23 # |
| 30 | 24 |
| 31 set testfile "xdb" | 25 set testfile "xdb" |
| 32 set srcfile ${testfile}.c | 26 set srcfile ${testfile}.c |
| 33 set binfile ${objdir}/${subdir}/${testfile} | 27 set binfile ${objdir}/${subdir}/${testfile} |
| 34 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 28 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 35 untested xdb1.exp | 29 untested xdb1.exp |
| 36 return -1 | 30 return -1 |
| 37 } | 31 } |
| 38 | 32 |
| 39 if [get_compiler_info ${binfile}] { | 33 if [get_compiler_info] { |
| 40 return -1; | 34 return -1; |
| 41 } | 35 } |
| 42 if { $gcc_compiled } then { continue } | 36 if { $gcc_compiled } then { continue } |
| 43 | 37 |
| 44 global GDBFLAGS | 38 global GDBFLAGS |
| 45 set saved_gdbflags $GDBFLAGS | 39 set saved_gdbflags $GDBFLAGS |
| 46 | 40 |
| 47 set GDBFLAGS "$GDBFLAGS --xdb" | 41 set GDBFLAGS "$GDBFLAGS --xdb" |
| 48 | 42 |
| 49 gdb_exit | 43 gdb_exit |
| (...skipping 15 matching lines...) Expand all Loading... |
| 65 gdb_exit | 59 gdb_exit |
| 66 set GDBFLAGS $saved_gdbflags | 60 set GDBFLAGS $saved_gdbflags |
| 67 return 0 | 61 return 0 |
| 68 | 62 |
| 69 | 63 |
| 70 | 64 |
| 71 | 65 |
| 72 | 66 |
| 73 | 67 |
| 74 | 68 |
| OLD | NEW |