From bb66bd5176cc5c47d44fdc693c0d6219425af5c5 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 11 Oct 2013 07:27:46 +0000 Subject: gdb/testsuite/ * gdb.mi/mi-catch-load.c: Remove the include of "dlfcn.h". [__WIN32__]: Include "windows.h" and define macro 'dlopen' and 'dlclose'. [!__WIN32__]: Include "dlfcn.h". * gdb.mi/mi-catch-load.exp: Set up kfail. --- gdb/testsuite/gdb.mi/mi-catch-load.c | 9 ++++++++- gdb/testsuite/gdb.mi/mi-catch-load.exp | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'gdb/testsuite/gdb.mi') diff --git a/gdb/testsuite/gdb.mi/mi-catch-load.c b/gdb/testsuite/gdb.mi/mi-catch-load.c index 83efda8..8fa45ad 100644 --- a/gdb/testsuite/gdb.mi/mi-catch-load.c +++ b/gdb/testsuite/gdb.mi/mi-catch-load.c @@ -15,9 +15,16 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include +#ifdef __WIN32__ +#include +#define dlopen(name, mode) LoadLibrary (TEXT (name)) +#define dlclose(handle) FreeLibrary (handle) +#else +#include +#endif + char *libname = "mi-catch-load-so.so"; int diff --git a/gdb/testsuite/gdb.mi/mi-catch-load.exp b/gdb/testsuite/gdb.mi/mi-catch-load.exp index 64c1f11..2b537dd 100644 --- a/gdb/testsuite/gdb.mi/mi-catch-load.exp +++ b/gdb/testsuite/gdb.mi/mi-catch-load.exp @@ -58,6 +58,7 @@ gdb_expect { pass "catch-load: solib-event stop" } -re ".*$mi_gdb_prompt$" { + setup_kfail mi/15945 *-*-*mingw* fail "catch-load: solib-event stop" } timeout { @@ -85,6 +86,7 @@ gdb_expect { pass "catch-unload: solib-event stop" } -re ".*$mi_gdb_prompt$" { + setup_kfail mi/15945 *-*-*mingw* fail "catch-unload: solib-event stop" } timeout { -- cgit v1.1