From 26669a276811c6d2836868651a28d802503ab987 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 3 Sep 2007 22:12:13 +0000 Subject: [PATCH] * gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert the dll name to unicode. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/unload.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 05a3393184f..ea169285963 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-09-03 Pedro Alves + + * gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert + the dll name to unicode. + 2007-09-03 Jan Kratochvil * gdb.base/default.exp (show version): Update the version text. diff --git a/gdb/testsuite/gdb.base/unload.c b/gdb/testsuite/gdb.base/unload.c index 2d98153367f..f882350007c 100644 --- a/gdb/testsuite/gdb.base/unload.c +++ b/gdb/testsuite/gdb.base/unload.c @@ -20,8 +20,12 @@ #ifdef __WIN32__ #include -#define dlopen(name, mode) LoadLibrary (name) -#define dlsym(handle, func) GetProcAddress (handle, func) +#define dlopen(name, mode) LoadLibrary (TEXT (name)) +#ifdef _WIN32_WCE +# define dlsym(handle, func) GetProcAddress (handle, TEXT (func)) +#else +# define dlsym(handle, func) GetProcAddress (handle, func) +#endif #define dlclose(handle) FreeLibrary (handle) #define dlerror() "error %d occurred", GetLastError () #else -- 2.30.2