OSDN Git Service

* gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert
authorPedro Alves <pedro@codesourcery.com>
Mon, 3 Sep 2007 22:12:13 +0000 (22:12 +0000)
committerPedro Alves <pedro@codesourcery.com>
Mon, 3 Sep 2007 22:12:13 +0000 (22:12 +0000)
the dll name to unicode.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/unload.c

index 05a3393..ea16928 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert
+       the dll name to unicode.
+
 2007-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * gdb.base/default.exp (show version): Update the version text.
index 2d98153..f882350 100644 (file)
 
 #ifdef __WIN32__
 #include <windows.h>
-#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