aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/solib-weak.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-05-16 14:21:47 +0000
committerDaniel Jacobowitz <drow@false.org>2007-05-16 14:21:47 +0000
commit93f02886fd15eef1d38f073c54031c812e564128 (patch)
tree1de4fdb193679af5546c9be4f2f12f86149970c1 /gdb/testsuite/gdb.base/solib-weak.exp
parent1a69e1e46aabbd453ddb0a6b4f605db4e2686018 (diff)
downloadgdb-93f02886fd15eef1d38f073c54031c812e564128.zip
gdb-93f02886fd15eef1d38f073c54031c812e564128.tar.gz
gdb-93f02886fd15eef1d38f073c54031c812e564128.tar.bz2
* lib/gdb.exp (gdb_compile): Add support for Windows DLLs.
(gdb_compile_shlib): Likewise. (skip_shlib_tests, gdb_download, gdb_load_shlibs): New. (default_gdb_init): Clear cleanfiles. (gdb_finish): Delete recorded cleanfiles. * lib/gdbserver-support.exp (gdbserver_spawn): Use gdb_download. * gdb.base/gdb1555.exp: Use skip_shlib_tests and gdb_load_shlibs. Do not use isnative. * gdb.base/pending.exp, gdb.base/shlib-call.exp, gdb.base/shreloc.exp, gdb.base/so-impl-ld.exp: Likewise. * gdb.base/solib-weak.exp: Likewise. Skip for DLL targets. * gdb.base/unload.exp: Likewise. Do not pass empty option to gdb_compile.
Diffstat (limited to 'gdb/testsuite/gdb.base/solib-weak.exp')
-rw-r--r--gdb/testsuite/gdb.base/solib-weak.exp12
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/solib-weak.exp b/gdb/testsuite/gdb.base/solib-weak.exp
index 6872769..85d943c 100644
--- a/gdb/testsuite/gdb.base/solib-weak.exp
+++ b/gdb/testsuite/gdb.base/solib-weak.exp
@@ -18,8 +18,15 @@
# than one shared library, when one of the implementations is a "weak"
# symbol. GDB should set a breakpoint at the first copy it finds.
-# Don't try to run shared library test cases on a remote target for now.
-if ![isnative] then {
+if {[skip_shlib_tests]} {
+ return 0
+}
+
+# These targets have shared libraries, but weak symbols are not meaningful.
+if {([istarget arm*-*-symbianelf*]
+ || [istarget *-*-mingw*]
+ || [istarget *-*-cygwin*]
+ || [istarget *-*-pe*])} {
return 0
}
@@ -81,6 +88,7 @@ proc do_test { lib1opts lib2opts lib1first } {
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
+ gdb_load_shlibs $lib1 $lib2
runto_main