equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 * or visit www.oracle.com if you need additional information or have any |
22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 #include <string.h> |
25 #include <string.h> |
|
26 #include "jni.h" |
26 |
27 |
27 #include "jdwpTransport.h" |
28 #include "jdwpTransport.h" |
28 #include "shmemBase.h" |
29 #include "shmemBase.h" |
29 #include "sysShmem.h" |
30 #include "sysShmem.h" |
30 #include "sys.h" |
31 #include "sys.h" |
336 } |
337 } |
337 strcpy(*msgP, msg); |
338 strcpy(*msgP, msg); |
338 return JDWPTRANSPORT_ERROR_NONE; |
339 return JDWPTRANSPORT_ERROR_NONE; |
339 } |
340 } |
340 |
341 |
341 jint JNICALL |
342 JNIEXPORT jint JNICALL |
342 jdwpTransport_OnLoad(JavaVM *vm, jdwpTransportCallback* cbTablePtr, |
343 jdwpTransport_OnLoad(JavaVM *vm, jdwpTransportCallback* cbTablePtr, |
343 jint version, jdwpTransportEnv** result) |
344 jint version, jdwpTransportEnv** result) |
344 { |
345 { |
345 if (version != JDWPTRANSPORT_VERSION_1_0) { |
346 if (version != JDWPTRANSPORT_VERSION_1_0) { |
346 return JNI_EVERSION; |
347 return JNI_EVERSION; |