| OLD | NEW |
| 1 # Copyright (C) 1997, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright (C) 1997, 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 # o gdb prints static and extern variables in shlibs incorrectly. | 37 # o gdb prints static and extern variables in shlibs incorrectly. |
| 38 # | 38 # |
| 39 # CLLbs16090 | 39 # CLLbs16090 |
| 40 # | 40 # |
| 41 # o deferred breakpoints should kick in for shlibs loaded explicitly | 41 # o deferred breakpoints should kick in for shlibs loaded explicitly |
| 42 # with the sharedlibrary command. | 42 # with the sharedlibrary command. |
| 43 # o GDB confuses export stubs with actual function. | 43 # o GDB confuses export stubs with actual function. |
| 44 # | 44 # |
| 45 # | 45 # |
| 46 | 46 |
| 47 if $tracelevel { | |
| 48 strace $tracelevel | |
| 49 } | |
| 50 | |
| 51 if { [skip_hp_tests] } { continue } | 47 if { [skip_hp_tests] } { continue } |
| 52 | 48 |
| 53 | 49 |
| 54 # are we on a target board | 50 # are we on a target board |
| 55 if ![isnative] { | 51 if ![isnative] { |
| 56 return | 52 return |
| 57 } | 53 } |
| 58 | 54 |
| 59 # This test is presently only valid on HP-UX, since it requires | 55 # This test is presently only valid on HP-UX, since it requires |
| 60 # that we use HP-UX-specific compiler & linker options to build | 56 # that we use HP-UX-specific compiler & linker options to build |
| 61 # the testcase. | 57 # the testcase. |
| 62 # | 58 # |
| 63 setup_xfail "*-*-*" | 59 setup_xfail "*-*-*" |
| 64 clear_xfail "hppa*-*-*hpux*" | 60 clear_xfail "hppa*-*-*hpux*" |
| 65 | 61 |
| 66 set prototypes 0 | 62 set prototypes 0 |
| 67 set testfile "solib-d" | 63 set testfile "solib-d" |
| 68 set srcfile ${testfile}.c | 64 set srcfile ${testfile}.c |
| 69 set binfile ${objdir}/${subdir}/${testfile} | 65 set binfile ${objdir}/${subdir}/${testfile} |
| 70 set testfile1 ${objdir}/${subdir}/${testfile}1.o | 66 set testfile1 ${objdir}/${subdir}/${testfile}1.o |
| 71 set testfile2 ${objdir}/${subdir}/${testfile}2.o | 67 set testfile2 ${objdir}/${subdir}/${testfile}2.o |
| 72 set libfile1 ${objdir}/${subdir}/${testfile}1.sl | 68 set libfile1 ${objdir}/${subdir}/${testfile}1.sl |
| 73 set libfile2 ${objdir}/${subdir}/${testfile}2.sl | 69 set libfile2 ${objdir}/${subdir}/${testfile}2.sl |
| 74 | 70 |
| 75 # Create and source the file that provides information about the compiler | 71 # Create and source the file that provides information about the compiler |
| 76 # used to compile the test case. | 72 # used to compile the test case. |
| 77 if [get_compiler_info ${binfile}] { | 73 if [get_compiler_info] { |
| 78 return -1; | 74 return -1; |
| 79 } | 75 } |
| 80 | 76 |
| 81 # set up appropriate compile option to recognize long double | 77 # set up appropriate compile option to recognize long double |
| 82 if {$hp_aCC_compiler || $hp_cc_compiler} { | 78 if {$hp_aCC_compiler || $hp_cc_compiler} { |
| 83 set picflag "+z" | 79 set picflag "+z" |
| 84 set ansiflag "-Ae" | 80 set ansiflag "-Ae" |
| 85 } else { | 81 } else { |
| 86 set picflag "-fpic" | 82 set picflag "-fpic" |
| 87 set ansiflag "" | 83 set ansiflag "" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 } | 262 } |
| 267 -re "$gdb_prompt $" { fail "load up all libraries" } | 263 -re "$gdb_prompt $" { fail "load up all libraries" } |
| 268 timeout { fail "(timeout) load all libraries " } | 264 timeout { fail "(timeout) load all libraries " } |
| 269 } | 265 } |
| 270 | 266 |
| 271 # do we stop at garbage ? If yes ok. | 267 # do we stop at garbage ? If yes ok. |
| 272 gdb_test "cont" "Breakpoint.*garbage.*" "deferred breakpoint enabled" | 268 gdb_test "cont" "Breakpoint.*garbage.*" "deferred breakpoint enabled" |
| 273 | 269 |
| 274 gdb_exit | 270 gdb_exit |
| 275 return 0 | 271 return 0 |
| OLD | NEW |