mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
Rename to allow_shlib_tests
This changes skip_shlib_tests to invert the sense, and renames it to allow_shlib_tests.
This commit is contained in:
parent
3eb4aab719
commit
d6195dc9b1
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
load_lib "ada.exp"
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# This test only works on GNU/Linux.
|
||||
require !use_gdb_stub isnative !skip_shlib_tests
|
||||
require !use_gdb_stub isnative allow_shlib_tests
|
||||
if { [is_remote host] || ![istarget *-linux*] } {
|
||||
return
|
||||
}
|
||||
|
@ -46,7 +46,7 @@
|
||||
|
||||
# This test can't be run on targets lacking shared library support
|
||||
# or for non-ELF targets.
|
||||
require !skip_shlib_tests is_elf_target
|
||||
require allow_shlib_tests is_elf_target
|
||||
|
||||
# Library file names and flags:
|
||||
set lib_basename ${::gdb_test_file_name}-lib
|
||||
|
@ -14,7 +14,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# This test only works on GNU/Linux.
|
||||
require !use_gdb_stub isnative !skip_shlib_tests
|
||||
require !use_gdb_stub isnative allow_shlib_tests
|
||||
if { [is_remote host] || ![istarget *-linux*] } {
|
||||
return
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .c
|
||||
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } {
|
||||
|
@ -296,7 +296,7 @@ build_corefile_buildid_exec
|
||||
do_corefile_buildid_tests
|
||||
do_corefile_buildid_tests -sepdebug
|
||||
|
||||
if {![skip_shlib_tests]} {
|
||||
if {[allow_shlib_tests]} {
|
||||
build_corefile_buildid_shared
|
||||
do_corefile_buildid_tests -shared
|
||||
do_corefile_buildid_tests -shared -sepdebug
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set executable ctxobj-m
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
set libfile "dprintf-pendshr"
|
||||
|
@ -23,7 +23,7 @@
|
||||
# also happens to exercise an issue with displaced stepping on amd64
|
||||
# when libdso1 is mapped at an address greater than 0xffffffff.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .c
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
# in the source of the shlib, and "list" should display the source where
|
||||
# the program stopped.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .c -shlib.c
|
||||
set shlib_path [standard_output_file ${testfile}-lib.so]
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile gcore-relro-main.c
|
||||
set libfile gcore-relro-lib
|
||||
|
@ -17,7 +17,7 @@
|
||||
# a shared library (PR gdb/1555, was PR shlib/1280, shlib/1237).
|
||||
# Tested on ppc-yellowdog-linux (Yellow Dog Linux 3.0 3.2.2-2a)
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile gdb1555-main.c gdb1555.c
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests allow_ifunc_tests
|
||||
require allow_shlib_tests allow_ifunc_tests
|
||||
|
||||
standard_testfile .c
|
||||
set staticexecutable ${testfile}-static
|
||||
|
@ -17,7 +17,7 @@
|
||||
# when the target doesn't support hw breakpoints doesn't silently
|
||||
# error out without informing the user.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set main_src hbreak-in-shr-unsupported.c
|
||||
set lib_src hbreak-in-shr-unsupported-shr.c
|
||||
|
@ -12,7 +12,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
if { [is_remote target] } {
|
||||
return 0
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
# Test 'info sources' when the test file makes use of a shared
|
||||
# library.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set is_remote_target [is_remote target]
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
# Additionally, check that GDB cau use 'dump binary memory' to write
|
||||
# out the in-memory JIT files.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
load_lib jit-elf-helpers.exp
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
# Test fork handling of an inferior that has JIT-ed objfiles.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
load_lib jit-elf-helpers.exp
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
# The same tests as in jit.exp, but loading JITer itself from a shared
|
||||
# library.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
load_lib jit-elf-helpers.exp
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
load_lib jit-elf-helpers.exp
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
# For completeness, also test when the JIT descriptor does not change
|
||||
# address between runs.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -22,7 +22,7 @@ if { (![istarget x86_64-*-*] && ![istarget i?86-*-*]) || ![is_lp64_target] } {
|
||||
return -1;
|
||||
}
|
||||
|
||||
require !skip_shlib_tests isnative
|
||||
require allow_shlib_tests isnative
|
||||
|
||||
# Increase this to see more detail.
|
||||
set test_verbose 0
|
||||
|
@ -18,7 +18,7 @@
|
||||
# static function named "foo" exists in the shared library. Tests
|
||||
# both with and without debug info.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile msym-bp-shl-main.c msym-bp-shl-main-2.c msym-bp-shl-lib.c
|
||||
set srcfile ${srcdir}/${subdir}/${srcfile}
|
||||
|
@ -19,7 +19,7 @@
|
||||
# test running programs
|
||||
#
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .c
|
||||
set libfile "pendshr"
|
||||
|
@ -19,7 +19,7 @@
|
||||
# This file was written by Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
|
||||
require isnative !skip_shlib_tests is_c_compiler_gcc
|
||||
require isnative allow_shlib_tests is_c_compiler_gcc
|
||||
if { [is_remote host] } {
|
||||
return
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
proc test {hidden dlopen version_id_main lang} {
|
||||
global srcdir subdir
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
# Test the "print symbol-loading" option.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile print-symbol-loading-main.c
|
||||
set libfile print-symbol-loading-lib
|
||||
|
@ -35,7 +35,7 @@
|
||||
# or for non-ELF targets. (We're not really testing or building
|
||||
# shared libraries here, but having a RTLD implies having shared
|
||||
# libraries on the target.)
|
||||
require !skip_shlib_tests is_elf_target
|
||||
require allow_shlib_tests is_elf_target
|
||||
|
||||
# (Pretend) RTLD file names and flags:
|
||||
set rtld_basename ${::gdb_test_file_name}-rtld
|
||||
|
@ -29,7 +29,7 @@
|
||||
#prop lib shr2.sl
|
||||
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
if { [is_remote host] } {
|
||||
gdb_remote_download host $srcdir/$subdir/ss.h
|
||||
|
@ -19,7 +19,7 @@
|
||||
# them gets relocated at load-time. Check that gdb gets the right
|
||||
# values for the debugging and minimal symbols.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
#
|
||||
# This file uses shreloc.c, shreloc1.c and shreloc2.c
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .c -lib.c
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#
|
||||
|
||||
# This only works on GNU/Linux.
|
||||
require isnative !skip_shlib_tests
|
||||
require isnative allow_shlib_tests
|
||||
if { [is_remote host] || ![istarget *-linux*] } {
|
||||
return
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .c
|
||||
set libfile "solib1"
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
if {[is_remote target]} {
|
||||
# gdbserver prints the warning message but expect is parsing only the GDB
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
# Test connecting and disconnecting at shared library events.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set gdbserver_reconnect_p 1
|
||||
if { [info proc gdb_reconnect] == "" } {
|
||||
|
@ -28,7 +28,7 @@
|
||||
# (and thus aren't affected by shared library unloading) are not
|
||||
# disabled prematurely.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
# This test is currently not supported for stub targets, because it uses the
|
||||
# start command (through gdb_start_cmd). In theory, it could be changed to
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
# The testcase assumes the target can access the OBJDIR.
|
||||
if [is_remote target] {
|
||||
|
@ -27,7 +27,7 @@
|
||||
# difference appears to be caused by prelink, adjusting expectations
|
||||
# In such case both disk libraries will be loaded at VMAs starting at zero.
|
||||
|
||||
require !skip_shlib_tests can_spawn_for_attach
|
||||
require allow_shlib_tests can_spawn_for_attach
|
||||
|
||||
# Library file.
|
||||
set libname "solib-overlap-lib"
|
||||
|
@ -16,7 +16,7 @@
|
||||
# Test solib-search-path, and in the case of solib-svr4.c whether l_addr_p
|
||||
# is properly reset when the path is changed.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
if {[is_remote target]} {
|
||||
untested "skipping remote target and shared library tests"
|
||||
return -1
|
||||
|
@ -15,7 +15,7 @@
|
||||
# Contributed by Markus Deuling <deuling@de.ibm.com>.
|
||||
#
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
# Library file.
|
||||
set libname "solib-symbol-lib"
|
||||
|
@ -53,7 +53,7 @@
|
||||
# 1) GDB does not segfault when stepping
|
||||
# 2) The stack frame is printed
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
# Library 2
|
||||
set lib2name "solib-vanish-lib2"
|
||||
|
@ -17,7 +17,7 @@
|
||||
# than one shared library, when one of the implementations is a "weak"
|
||||
# symbol. GDB should set a breakpoint at the first copy it finds.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
# These targets have shared libraries, but weak symbols are not meaningful.
|
||||
if {([istarget *-*-mingw*]
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
require is_elf_target
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set target_size TARGET_UNKNOWN
|
||||
if {[is_lp64_target]} {
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .c symtab-search-order-1.c symtab-search-order-shlib-1.c
|
||||
set srcfile $srcdir/$subdir/$srcfile
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
# Test resolving of an opaque type from the loaded shared library.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile type-opaque-main.c
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
# test running programs
|
||||
#
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set testfile "unload"
|
||||
set libfile "unloadshr"
|
||||
|
@ -26,7 +26,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
|
||||
#
|
||||
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set testfile "watchpoint-solib"
|
||||
set libfile "watchpoint-solib-shr"
|
||||
|
@ -15,7 +15,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require allow_btrace_tests !skip_shlib_tests
|
||||
require allow_btrace_tests allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -366,7 +366,7 @@ if { $srcfile3 != "" } {
|
||||
|
||||
# Shared library tests.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set libbin [standard_output_file ${testfile}-shlib.so]
|
||||
set binfile [standard_output_file ${testfile}-shlib]
|
||||
|
@ -19,7 +19,7 @@
|
||||
# on the libstc++.so DSO (which is how GDB was built and revealed the
|
||||
# bug), and vice versa.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
# STATIC_BIN indicates whether to build the main binary with
|
||||
# -static-libgcc/-static-libstdc++. STATIC_LIB is the same, but for
|
||||
|
@ -21,7 +21,7 @@
|
||||
#
|
||||
# PR c++/9489.
|
||||
|
||||
require allow_cplus_tests !skip_shlib_tests
|
||||
require allow_cplus_tests allow_shlib_tests
|
||||
|
||||
standard_testfile .cc gdb2384-base.cc
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .cc infcall-dlopen-lib.cc
|
||||
set libfile [standard_output_file ${testfile}.so]
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require allow_cplus_tests !skip_shlib_tests
|
||||
require allow_cplus_tests allow_shlib_tests
|
||||
|
||||
standard_testfile bool.cc .cc
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
load_lib dwarf.exp
|
||||
|
||||
# This test can only be run on targets which support DWARF-2 and use gas.
|
||||
require dwarf2_support !skip_shlib_tests
|
||||
require dwarf2_support allow_shlib_tests
|
||||
|
||||
standard_testfile .c -shlib.c -dw.S
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
||||
# which is then used by a shared object.
|
||||
|
||||
# This test can't be run on targets lacking shared library support.
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
load_lib dwarf.exp
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
load_lib mi-support.exp
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#
|
||||
load_lib mi-support.exp
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile mi-catch-load.c
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
load_lib mi-support.exp
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile mi-dprintf-pending.c
|
||||
|
||||
|
@ -20,7 +20,7 @@ set MIFLAGS "-i=mi"
|
||||
# test running programs
|
||||
#
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile mi-pending.c
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
load_lib mi-support.exp
|
||||
set MIFLAGS "-i=mi2"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
gdb_exit
|
||||
if [mi_gdb_start] {
|
||||
|
@ -20,7 +20,7 @@
|
||||
load_lib mi-support.exp
|
||||
set MIFLAGS "-i=mi"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile .c -lib.c
|
||||
set shlib_path [standard_output_file ${testfile}-lib.so]
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
standard_testfile
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
# Library file.
|
||||
set libname "${testfile}-lib"
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
load_lib gdb-python.exp
|
||||
|
||||
require !skip_shlib_tests allow_python_tests
|
||||
require allow_shlib_tests allow_python_tests
|
||||
|
||||
if {[get_compiler_info]} {
|
||||
warning "Could not get compiler info"
|
||||
|
@ -16,7 +16,7 @@
|
||||
# This file is part of the GDB testsuite. It tests the mechanism
|
||||
# exposing values to Python.
|
||||
|
||||
require !skip_shlib_tests allow_python_tests
|
||||
require allow_shlib_tests allow_python_tests
|
||||
|
||||
load_lib gdb-python.exp
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
load_lib gdb-python.exp
|
||||
|
||||
require !skip_shlib_tests allow_python_tests
|
||||
require allow_shlib_tests allow_python_tests
|
||||
|
||||
standard_testfile
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
# with shared libraries and a logfile.
|
||||
|
||||
# This test suitable only for process record-replay
|
||||
require supports_process_record !skip_shlib_tests
|
||||
require supports_process_record allow_shlib_tests
|
||||
|
||||
standard_testfile solib-reverse.c
|
||||
set precsave [standard_output_file solib.precsave]
|
||||
|
@ -16,7 +16,7 @@
|
||||
# This file is part of the GDB testsuite. It tests reverse debugging
|
||||
# with shared libraries.
|
||||
|
||||
require supports_reverse !skip_shlib_tests
|
||||
require supports_reverse allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
set lib1file "shr1"
|
||||
|
@ -15,10 +15,10 @@
|
||||
|
||||
load_lib gdbserver-support.exp
|
||||
|
||||
# We test for skip_shlib_tests in this test because without a main
|
||||
# We test for allow_shlib_tests in this test because without a main
|
||||
# exec file we only have the exec target loaded if shared libraries
|
||||
# are present.
|
||||
require allow_gdbserver_tests !skip_shlib_tests
|
||||
require allow_gdbserver_tests allow_shlib_tests
|
||||
|
||||
standard_testfile server.c
|
||||
if [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] {
|
||||
|
@ -23,7 +23,7 @@
|
||||
load_lib gdbserver-support.exp
|
||||
load_lib prelink-support.exp
|
||||
|
||||
require allow_gdbserver_tests !skip_shlib_tests
|
||||
require allow_gdbserver_tests allow_shlib_tests
|
||||
|
||||
standard_testfile solib-list-main.c
|
||||
set srclibfile ${testfile}-lib.c
|
||||
|
@ -13,7 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require isnative !skip_shlib_tests
|
||||
require isnative allow_shlib_tests
|
||||
if {![istarget *-linux*]} {
|
||||
return 0
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
load_lib "trace-support.exp"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
require gdb_trace_common_supports_arch
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
load_lib "trace-support.exp"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
set executable $testfile
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
load_lib "trace-support.exp"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
set executable $testfile
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
load_lib trace-support.exp
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
require gdb_trace_common_supports_arch
|
||||
|
||||
standard_testfile pending.c
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
load_lib "trace-support.exp"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
require gdb_trace_common_supports_arch
|
||||
|
||||
|
@ -65,7 +65,7 @@ proc range_stepping_with_tracepoint { type } {
|
||||
|
||||
range_stepping_with_tracepoint "trace"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set libipa [get_in_proc_agent]
|
||||
set remote_libipa [gdb_load_shlib $libipa]
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
load_lib "trace-support.exp"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
set executable $testfile
|
||||
|
@ -342,7 +342,7 @@ foreach at_first_loc { "1" "0" } {
|
||||
break_trace_same_addr_6 "trace" "enable" "trace" "disable"
|
||||
break_trace_same_addr_6 "trace" "disable" "trace" "enable"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set libipa [get_in_proc_agent]
|
||||
set remote_libipa [gdb_load_shlib $libipa]
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
load_lib "trace-support.exp"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
set executable $testfile
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
load_lib "trace-support.exp"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
standard_testfile
|
||||
set executable $testfile
|
||||
|
@ -105,7 +105,7 @@ foreach break_always_inserted { "on" "off" } {
|
||||
|
||||
step_over_tracepoint "trace"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
set libipa [get_in_proc_agent]
|
||||
set remote_libipa [gdb_load_shlib $libipa]
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
load_lib "trace-support.exp"
|
||||
|
||||
require !skip_shlib_tests
|
||||
require allow_shlib_tests
|
||||
|
||||
# Do not run if gdbsever debug is enabled - the output file is many Gb.
|
||||
if [gdbserver_debug_enabled] {
|
||||
|
@ -2454,12 +2454,12 @@ gdb_caching_proc allow_python_tests {
|
||||
return [expr {[string first "--with-python" $output] != -1}]
|
||||
}
|
||||
|
||||
# Return a 1 if we should skip shared library tests.
|
||||
# Return a 1 if we should run shared library tests.
|
||||
|
||||
proc skip_shlib_tests {} {
|
||||
proc allow_shlib_tests {} {
|
||||
# Run the shared library tests on native systems.
|
||||
if {[isnative]} {
|
||||
return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
# An abbreviated list of remote targets where we should be able to
|
||||
@ -2470,10 +2470,10 @@ proc skip_shlib_tests {} {
|
||||
|| [istarget *-*-mingw*]
|
||||
|| [istarget *-*-cygwin*]
|
||||
|| [istarget *-*-pe*])} {
|
||||
return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
# Return 1 if we should run dlmopen tests, 0 if we should not.
|
||||
@ -2482,7 +2482,7 @@ gdb_caching_proc allow_dlmopen_tests {
|
||||
global srcdir subdir gdb_prompt inferior_exited_re
|
||||
|
||||
# We need shared library support.
|
||||
if { [skip_shlib_tests] } {
|
||||
if { ![allow_shlib_tests] } {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user