| OLD | NEW |
| 1 # Copyright 1997-2000, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1997-2000, 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 # are we on a target board | 17 # are we on a target board |
| 22 if ![isnative] then { | 18 if ![isnative] then { |
| 23 return | 19 return |
| 24 } | 20 } |
| 25 | 21 |
| 26 # This test is presently only valid on HP-UX, since it requires | 22 # This test is presently only valid on HP-UX, since it requires |
| 27 # that we use HP-UX-specific compiler & linker options to build | 23 # that we use HP-UX-specific compiler & linker options to build |
| 28 # the testcase. | 24 # the testcase. |
| 29 # | 25 # |
| 30 if {! [istarget "hppa*-*-*hpux*"] } { | 26 if {! [istarget "hppa*-*-*hpux*"] } { |
| 31 return | 27 return |
| 32 } | 28 } |
| 33 | 29 |
| 34 set libfile "solib" | 30 set libfile "solib" |
| 35 set testfile "so-indr-cl" | 31 set testfile "so-indr-cl" |
| 36 set srcfile ${testfile}.c | 32 set srcfile ${testfile}.c |
| 37 set binfile ${objdir}/${subdir}/${testfile} | 33 set binfile ${objdir}/${subdir}/${testfile} |
| 38 | 34 |
| 39 if [get_compiler_info ${binfile}] { | 35 if [get_compiler_info] { |
| 40 return -1 | 36 return -1 |
| 41 } | 37 } |
| 42 | 38 |
| 43 # Build the shared libraries this test case needs. | 39 # Build the shared libraries this test case needs. |
| 44 # | 40 # |
| 45 #cd ${subdir} | 41 #cd ${subdir} |
| 46 #remote_exec build "$CC -g +z -c ${libfile}1.c -o ${libfile}1.o" | 42 #remote_exec build "$CC -g +z -c ${libfile}1.c -o ${libfile}1.o" |
| 47 | 43 |
| 48 | 44 |
| 49 if {$hp_cc_compiler || $hp_aCC_compiler} { | 45 if {$hp_cc_compiler || $hp_aCC_compiler} { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 gdb_expect { | 120 gdb_expect { |
| 125 -re ".*\[Bb\]reakpoint \[0-9\]* at 0x\[0-9a-fA-F\]*: file.*${libfile}1.c.*$gdb
_prompt $"\ | 121 -re ".*\[Bb\]reakpoint \[0-9\]* at 0x\[0-9a-fA-F\]*: file.*${libfile}1.c.*$gdb
_prompt $"\ |
| 126 {pass "break on indirect solib call after running"} | 122 {pass "break on indirect solib call after running"} |
| 127 -re "$gdb_prompt $"\ | 123 -re "$gdb_prompt $"\ |
| 128 {fail "break on indirect solib call after running"} | 124 {fail "break on indirect solib call after running"} |
| 129 timeout {fail "(timeout) break on indirect solib call after running"} | 125 timeout {fail "(timeout) break on indirect solib call after running"} |
| 130 } | 126 } |
| 131 | 127 |
| 132 gdb_exit | 128 gdb_exit |
| 133 return 0 | 129 return 0 |
| OLD | NEW |