0N/A/*
2362N/A * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A#include "util.h"
0N/A#include "ThreadReferenceImpl.h"
0N/A#include "eventHandler.h"
0N/A#include "threadControl.h"
0N/A#include "inStream.h"
0N/A#include "outStream.h"
0N/A#include "FrameID.h"
0N/A
0N/Astatic jboolean
0N/Aname(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A JNIEnv *env;
0N/A jthread thread;
0N/A
0N/A env = getEnv();
0N/A
0N/A thread = inStream_readThreadRef(env, in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A WITH_LOCAL_REFS(env, 1) {
0N/A
0N/A jvmtiThreadInfo info;
0N/A jvmtiError error;
0N/A
0N/A (void)memset(&info, 0, sizeof(info));
0N/A
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,GetThreadInfo)
0N/A (gdata->jvmti, thread, &info);
0N/A
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A } else {
0N/A (void)outStream_writeString(out, info.name);
0N/A }
0N/A
0N/A if ( info.name != NULL )
0N/A jvmtiDeallocate(info.name);
0N/A
0N/A } END_WITH_LOCAL_REFS(env);
0N/A
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/Asuspend(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A jvmtiError error;
0N/A jthread thread;
0N/A
0N/A thread = inStream_readThreadRef(getEnv(), in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A error = threadControl_suspendThread(thread, JNI_FALSE);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A }
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/Aresume(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A jvmtiError error;
0N/A jthread thread;
0N/A
0N/A thread = inStream_readThreadRef(getEnv(), in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A /* true means it is okay to unblock the commandLoop thread */
0N/A error = threadControl_resumeThread(thread, JNI_TRUE);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A }
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/Astatus(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A jdwpThreadStatus threadStatus;
0N/A jint statusFlags;
0N/A jvmtiError error;
0N/A jthread thread;
0N/A
0N/A thread = inStream_readThreadRef(getEnv(), in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A error = threadControl_applicationThreadStatus(thread, &threadStatus,
0N/A &statusFlags);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A return JNI_TRUE;
0N/A }
0N/A (void)outStream_writeInt(out, threadStatus);
0N/A (void)outStream_writeInt(out, statusFlags);
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/AthreadGroup(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A JNIEnv *env;
0N/A jthread thread;
0N/A
0N/A env = getEnv();
0N/A
0N/A thread = inStream_readThreadRef(env, in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A WITH_LOCAL_REFS(env, 1) {
0N/A
0N/A jvmtiThreadInfo info;
0N/A jvmtiError error;
0N/A
0N/A (void)memset(&info, 0, sizeof(info));
0N/A
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,GetThreadInfo)
0N/A (gdata->jvmti, thread, &info);
0N/A
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A } else {
0N/A (void)outStream_writeObjectRef(env, out, info.thread_group);
0N/A }
0N/A
0N/A if ( info.name!=NULL )
0N/A jvmtiDeallocate(info.name);
0N/A
0N/A } END_WITH_LOCAL_REFS(env);
0N/A
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/AvalidateSuspendedThread(PacketOutputStream *out, jthread thread)
0N/A{
0N/A jvmtiError error;
0N/A jint count;
0N/A
0N/A error = threadControl_suspendCount(thread, &count);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A return JNI_FALSE;
0N/A }
0N/A
0N/A if (count == 0) {
0N/A outStream_setError(out, JDWP_ERROR(THREAD_NOT_SUSPENDED));
0N/A return JNI_FALSE;
0N/A }
0N/A
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/Aframes(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A jvmtiError error;
0N/A FrameNumber fnum;
0N/A jint count;
0N/A JNIEnv *env;
0N/A jthread thread;
0N/A jint startIndex;
0N/A jint length;
0N/A
0N/A env = getEnv();
0N/A
0N/A thread = inStream_readThreadRef(env, in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A startIndex = inStream_readInt(in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A length = inStream_readInt(in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (!validateSuspendedThread(out, thread)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,GetFrameCount)
0N/A (gdata->jvmti, thread, &count);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (length == -1) {
0N/A length = count - startIndex;
0N/A }
0N/A
0N/A if (length == 0) {
0N/A (void)outStream_writeInt(out, 0);
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if ((startIndex < 0) || (startIndex > count - 1)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_INDEX));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if ((length < 0) || (length + startIndex > count)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_LENGTH));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A (void)outStream_writeInt(out, length);
0N/A
0N/A for(fnum = startIndex ; fnum < startIndex+length ; fnum++ ) {
0N/A
0N/A WITH_LOCAL_REFS(env, 1) {
0N/A
0N/A jclass clazz;
0N/A jmethodID method;
0N/A jlocation location;
0N/A
0N/A /* Get location info */
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,GetFrameLocation)
0N/A (gdata->jvmti, thread, fnum, &method, &location);
0N/A if (error == JVMTI_ERROR_OPAQUE_FRAME) {
0N/A clazz = NULL;
0N/A location = -1L;
0N/A error = JVMTI_ERROR_NONE;
0N/A } else if ( error == JVMTI_ERROR_NONE ) {
0N/A error = methodClass(method, &clazz);
0N/A if ( error == JVMTI_ERROR_NONE ) {
0N/A FrameID frame;
0N/A frame = createFrameID(thread, fnum);
0N/A (void)outStream_writeFrameID(out, frame);
0N/A writeCodeLocation(out, clazz, method, location);
0N/A }
0N/A }
0N/A
0N/A } END_WITH_LOCAL_REFS(env);
0N/A
0N/A if (error != JVMTI_ERROR_NONE)
0N/A break;
0N/A
0N/A }
0N/A
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A }
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/AgetFrameCount(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A jvmtiError error;
0N/A jint count;
0N/A jthread thread;
0N/A
0N/A thread = inStream_readThreadRef(getEnv(), in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (!validateSuspendedThread(out, thread)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,GetFrameCount)
0N/A (gdata->jvmti, thread, &count);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A return JNI_TRUE;
0N/A }
0N/A (void)outStream_writeInt(out, count);
0N/A
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/AownedMonitors(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A JNIEnv *env;
0N/A jthread thread;
0N/A
0N/A env = getEnv();
0N/A
0N/A thread = inStream_readThreadRef(env, in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (!validateSuspendedThread(out, thread)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A WITH_LOCAL_REFS(env, 1) {
0N/A
0N/A jvmtiError error;
0N/A jint count = 0;
0N/A jobject *monitors = NULL;
0N/A
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,GetOwnedMonitorInfo)
0N/A (gdata->jvmti, thread, &count, &monitors);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A } else {
0N/A int i;
0N/A (void)outStream_writeInt(out, count);
0N/A for (i = 0; i < count; i++) {
0N/A jobject monitor = monitors[i];
0N/A (void)outStream_writeByte(out, specificTypeKey(env, monitor));
0N/A (void)outStream_writeObjectRef(env, out, monitor);
0N/A }
0N/A }
0N/A if (monitors != NULL)
0N/A jvmtiDeallocate(monitors);
0N/A
0N/A } END_WITH_LOCAL_REFS(env);
0N/A
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/AcurrentContendedMonitor(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A JNIEnv *env;
0N/A jthread thread;
0N/A
0N/A env = getEnv();
0N/A
0N/A thread = inStream_readThreadRef(env, in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (thread == NULL || threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (!validateSuspendedThread(out, thread)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A WITH_LOCAL_REFS(env, 1) {
0N/A
0N/A jobject monitor;
0N/A jvmtiError error;
0N/A
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,GetCurrentContendedMonitor)
0N/A (gdata->jvmti, thread, &monitor);
0N/A
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A } else {
0N/A (void)outStream_writeByte(out, specificTypeKey(env, monitor));
0N/A (void)outStream_writeObjectRef(env, out, monitor);
0N/A }
0N/A
0N/A } END_WITH_LOCAL_REFS(env);
0N/A
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/Astop(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A jvmtiError error;
0N/A jthread thread;
0N/A jobject throwable;
0N/A JNIEnv *env;
0N/A
0N/A env = getEnv();
0N/A thread = inStream_readThreadRef(env, in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A throwable = inStream_readObjectRef(env, in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A error = threadControl_stop(thread, throwable);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A }
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/Ainterrupt(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A jvmtiError error;
0N/A jthread thread;
0N/A
0N/A thread = inStream_readThreadRef(getEnv(), in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A error = threadControl_interrupt(thread);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A }
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/AsuspendCount(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A jvmtiError error;
0N/A jint count;
0N/A jthread thread;
0N/A
0N/A thread = inStream_readThreadRef(getEnv(), in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A error = threadControl_suspendCount(thread, &count);
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A (void)outStream_writeInt(out, count);
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/AownedMonitorsWithStackDepth(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A JNIEnv *env;
0N/A jthread thread;
0N/A
0N/A thread = inStream_readThreadRef(getEnv(), in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (thread == NULL || threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (!validateSuspendedThread(out, thread)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A env = getEnv();
0N/A
0N/A WITH_LOCAL_REFS(env, 1) {
0N/A
0N/A jvmtiError error = JVMTI_ERROR_NONE;
0N/A jint count = 0;
0N/A jvmtiMonitorStackDepthInfo *monitors=NULL;
0N/A
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,GetOwnedMonitorStackDepthInfo)
0N/A (gdata->jvmti, thread, &count, &monitors);
0N/A
0N/A if (error != JVMTI_ERROR_NONE) {
0N/A outStream_setError(out, map2jdwpError(error));
0N/A } else {
0N/A int i;
0N/A (void)outStream_writeInt(out, count);
0N/A for (i = 0; i < count; i++) {
0N/A jobject monitor = monitors[i].monitor;
0N/A (void)outStream_writeByte(out, specificTypeKey(env, monitor));
0N/A (void)outStream_writeObjectRef(getEnv(), out, monitor);
0N/A (void)outStream_writeInt(out,monitors[i].stack_depth);
0N/A }
0N/A }
0N/A if (monitors != NULL) {
0N/A jvmtiDeallocate(monitors);
0N/A }
0N/A
0N/A } END_WITH_LOCAL_REFS(env);
0N/A
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/Astatic jboolean
0N/AforceEarlyReturn(PacketInputStream *in, PacketOutputStream *out)
0N/A{
0N/A JNIEnv *env;
0N/A jthread thread;
0N/A jvalue value;
0N/A jbyte typeKey;
0N/A jvmtiError error;
0N/A
0N/A env = getEnv();
0N/A thread = inStream_readThreadRef(env, in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (threadControl_isDebugThread(thread)) {
0N/A outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A typeKey = inStream_readByte(in);
0N/A if (inStream_error(in)) {
0N/A return JNI_TRUE;
0N/A }
0N/A
0N/A if (isObjectTag(typeKey)) {
0N/A value.l = inStream_readObjectRef(env, in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnObject)
0N/A (gdata->jvmti, thread, value.l);
0N/A } else {
0N/A switch (typeKey) {
0N/A case JDWP_TAG(VOID):
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnVoid)
0N/A (gdata->jvmti, thread);
0N/A break;
0N/A case JDWP_TAG(BYTE):
0N/A value.b = inStream_readByte(in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnInt)
0N/A (gdata->jvmti, thread, value.b);
0N/A break;
0N/A
0N/A case JDWP_TAG(CHAR):
0N/A value.c = inStream_readChar(in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnInt)
0N/A (gdata->jvmti, thread, value.c);
0N/A break;
0N/A
0N/A case JDWP_TAG(FLOAT):
0N/A value.f = inStream_readFloat(in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnFloat)
0N/A (gdata->jvmti, thread, value.f);
0N/A break;
0N/A
0N/A case JDWP_TAG(DOUBLE):
0N/A value.d = inStream_readDouble(in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnDouble)
0N/A (gdata->jvmti, thread, value.d);
0N/A break;
0N/A
0N/A case JDWP_TAG(INT):
0N/A value.i = inStream_readInt(in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnInt)
0N/A (gdata->jvmti, thread, value.i);
0N/A break;
0N/A
0N/A case JDWP_TAG(LONG):
0N/A value.j = inStream_readLong(in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnLong)
0N/A (gdata->jvmti, thread, value.j);
0N/A break;
0N/A
0N/A case JDWP_TAG(SHORT):
0N/A value.s = inStream_readShort(in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnInt)
0N/A (gdata->jvmti, thread, value.s);
0N/A break;
0N/A
0N/A case JDWP_TAG(BOOLEAN):
0N/A value.z = inStream_readBoolean(in);
0N/A error = JVMTI_FUNC_PTR(gdata->jvmti,ForceEarlyReturnInt)
0N/A (gdata->jvmti, thread, value.z);
0N/A break;
0N/A
0N/A default:
0N/A error = AGENT_ERROR_INVALID_TAG;
0N/A break;
0N/A }
0N/A }
0N/A {
0N/A jdwpError serror = map2jdwpError(error);
0N/A if (serror != JDWP_ERROR(NONE)) {
0N/A outStream_setError(out, serror);
0N/A }
0N/A }
0N/A return JNI_TRUE;
0N/A}
0N/A
0N/A
0N/Avoid *ThreadReference_Cmds[] = { (void *)14,
0N/A (void *)name,
0N/A (void *)suspend,
0N/A (void *)resume,
0N/A (void *)status,
0N/A (void *)threadGroup,
0N/A (void *)frames,
0N/A (void *)getFrameCount,
0N/A (void *)ownedMonitors,
0N/A (void *)currentContendedMonitor,
0N/A (void *)stop,
0N/A (void *)interrupt,
0N/A (void *)suspendCount,
0N/A (void *)ownedMonitorsWithStackDepth,
0N/A (void *)forceEarlyReturn
0N/A };