changeset 54244:9eee0b148002

8214122: JDWP is broken on 32 bit Windows: transport library missing onLoad entry Reviewed-by: ihse, dcubed
author aivanov
date Thu, 20 Dec 2018 12:44:41 +0000
parents eeac4e2558d7
children 450c1abf9c62
files src/jdk.jdwp.agent/share/native/libjdwp/transport.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;