From 93f02886fd15eef1d38f073c54031c812e564128 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 16 May 2007 14:21:47 +0000 Subject: * 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. --- gdb/testsuite/gdb.base/solib-weak.exp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite/gdb.base/solib-weak.exp') diff --git a/gdb/testsuite/gdb.base/solib-weak.exp b/gdb/testsuite/gdb.base/solib-weak.exp index 687276910ec..85d943cb3ea 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 -- cgit v1.2.1