8214122: JDWP is broken on 32 bit Windows: transport library missing onLoad entry
authoraivanov
Thu, 20 Dec 2018 12:44:41 +0000
changeset 53184 9eee0b148002
parent 53183 eeac4e2558d7
child 53185 450c1abf9c62
8214122: JDWP is broken on 32 bit Windows: transport library missing onLoad entry Reviewed-by: ihse, dcubed
src/jdk.jdwp.agent/share/native/libjdwp/transport.c
--- a/src/jdk.jdwp.agent/share/native/libjdwp/transport.c	Wed Dec 19 14:11:35 2018 -0800
+++ b/src/jdk.jdwp.agent/share/native/libjdwp/transport.c	Thu Dec 20 12:44:41 2018 +0000
@@ -95,6 +95,13 @@
     if (handle == NULL) {
         return onLoad;
     }
+#if defined(_WIN32) && !defined(_WIN64)
+    onLoad = (jdwpTransport_OnLoad_t)
+                 dbgsysFindLibraryEntry(handle, "_jdwpTransport_OnLoad@16");
+    if (onLoad != NULL) {
+        return onLoad;
+    }
+#endif
     onLoad = (jdwpTransport_OnLoad_t)
                  dbgsysFindLibraryEntry(handle, "jdwpTransport_OnLoad");
     return onLoad;