diff options
author | Keith Seitz <keiths@redhat.com> | 2006-07-20 19:30:30 +0000 |
---|---|---|
committer | Keith Seitz <kseitz@gcc.gnu.org> | 2006-07-20 19:30:30 +0000 |
commit | 94f473ee2c02f0e21e3c328169424bbfd491e893 (patch) | |
tree | 74b5eb32122e2c9c320ddc672d207de4a0a96ef1 /libjava/jni.cc | |
parent | 6b1fd291b5ebfd105e6fd50ec6d5c61d34cbbb2e (diff) | |
download | gcc-94f473ee2c02f0e21e3c328169424bbfd491e893.zip gcc-94f473ee2c02f0e21e3c328169424bbfd491e893.tar.gz gcc-94f473ee2c02f0e21e3c328169424bbfd491e893.tar.bz2 |
jvm.h (_Jv_GetJVMTIEnv): Declare.
* include/jvm.h (_Jv_GetJVMTIEnv): Declare.
* jni.cc (_Jv_JNI_GetEnv): Handle JVMTI requests.
* jvmti.cc: New file.
* Makefile.am (libgcj_la_SOURCES): Add jvmti.cc.
* Makefile.in: Regenerate.
From-SVN: r115629
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index 67ba8fa..f7d73e5 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -22,6 +22,7 @@ details. */ #ifdef ENABLE_JVMPI #include <jvmpi.h> #endif +#include <jvmti.h> #include <java/lang/Class.h> #include <java/lang/ClassLoader.h> @@ -2495,6 +2496,13 @@ _Jv_JNI_GetEnv (JavaVM *, void **penv, jint version) } #endif + // Handle JVMTI requests + if (version == JVMTI_VERSION_1_0) + { + *penv = (void *) _Jv_GetJVMTIEnv (); + return 0; + } + // FIXME: do we really want to support 1.1? if (version != JNI_VERSION_1_4 && version != JNI_VERSION_1_2 && version != JNI_VERSION_1_1) |