diff options
author | Yao Qi <yao@codesourcery.com> | 2013-10-11 07:27:46 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-10-11 07:27:46 +0000 |
commit | bb66bd5176cc5c47d44fdc693c0d6219425af5c5 (patch) | |
tree | acacc7413df57226705b95d28b43c34f3eef5c1c /gdb/testsuite/gdb.mi | |
parent | 0e1c2434015db29e87a515288dafff24b8844efc (diff) | |
download | gdb-bb66bd5176cc5c47d44fdc693c0d6219425af5c5.zip gdb-bb66bd5176cc5c47d44fdc693c0d6219425af5c5.tar.gz gdb-bb66bd5176cc5c47d44fdc693c0d6219425af5c5.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-catch-load.c | 9 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-catch-load.exp | 2 |
2 files changed, 10 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. */ -#include <dlfcn.h> #include <stdio.h> +#ifdef __WIN32__ +#include <windows.h> +#define dlopen(name, mode) LoadLibrary (TEXT (name)) +#define dlclose(handle) FreeLibrary (handle) +#else +#include <dlfcn.h> +#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 { |