diff options
-rw-r--r-- | openjdkjvmti/OpenjdkJvmTi.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openjdkjvmti/OpenjdkJvmTi.cc b/openjdkjvmti/OpenjdkJvmTi.cc index a5c5df6cc9..09900e1f73 100644 --- a/openjdkjvmti/OpenjdkJvmTi.cc +++ b/openjdkjvmti/OpenjdkJvmTi.cc @@ -1438,6 +1438,13 @@ static jint GetEnvHandler(art::JavaVMExt* vm, /*out*/void** env, jint version) { return JNI_OK; } else { printf("version 0x%x is not valid!", version); + if (IsJvmtiVersion(version)) { + LOG(ERROR) << "JVMTI Version 0x" << std::hex << version << " requested but the runtime is not" + << " debuggable! Only limited, best effort kArtTiVersion" + << " (0x" << std::hex << kArtTiVersion << ") environments are available. If" + << " possible, rebuild your apk in debuggable mode or start the runtime with" + << " the `-Xcompiler-option --debuggable` flags."; + } return JNI_EVERSION; } } |