0N/A/*
2362N/A * Copyright (c) 1998, 2005, 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#ifndef JDWP_THREADCONTROL_H
0N/A#define JDWP_THREADCONTROL_H
0N/A
0N/A#include "stepControl.h"
0N/A#include "invoker.h"
0N/A#include "bag.h"
0N/A
0N/Avoid threadControl_initialize(void);
0N/Avoid threadControl_reset(void);
0N/Avoid threadControl_detachInvokes(void);
0N/A
0N/Avoid threadControl_onHook(void);
0N/Avoid threadControl_onConnect(void);
0N/Avoid threadControl_onDisconnect(void);
0N/A
0N/AjvmtiError threadControl_popFrames(jthread thread, FrameNumber fnum);
0N/A
0N/Astruct bag *threadControl_onEventHandlerEntry(jbyte sessionID,
0N/A EventIndex ei, jthread thread, jobject currentException);
0N/Avoid threadControl_onEventHandlerExit(EventIndex ei, jthread thread, struct bag *);
0N/A
0N/A
0N/AjvmtiError threadControl_suspendThread(jthread thread, jboolean deferred);
0N/AjvmtiError threadControl_resumeThread(jthread thread, jboolean do_unblock);
0N/AjvmtiError threadControl_suspendCount(jthread thread, jint *count);
0N/A
0N/AjvmtiError threadControl_suspendAll(void);
0N/AjvmtiError threadControl_resumeAll(void);
0N/A
0N/AStepRequest *threadControl_getStepRequest(jthread);
0N/AInvokeRequest *threadControl_getInvokeRequest(jthread);
0N/A
0N/Ajboolean threadControl_isDebugThread(jthread thread);
0N/AjvmtiError threadControl_addDebugThread(jthread thread);
0N/A
0N/AjvmtiError threadControl_applicationThreadStatus(jthread thread, jdwpThreadStatus *pstatus, jint *suspendStatus);
0N/AjvmtiError threadControl_interrupt(jthread thread);
0N/AjvmtiError threadControl_stop(jthread thread, jobject throwable);
0N/A
0N/AjvmtiError threadControl_setEventMode(jvmtiEventMode mode, EventIndex ei, jthread thread);
0N/AjvmtiEventMode threadControl_getInstructionStepMode(jthread thread);
0N/A
0N/Ajthread threadControl_currentThread(void);
0N/Avoid threadControl_setPendingInterrupt(jthread thread);
0N/Avoid threadControl_clearCLEInfo(JNIEnv *env, jthread thread);
0N/Ajboolean threadControl_cmpCLEInfo(JNIEnv *env, jthread thread, jclass clazz,
0N/A jmethodID method, jlocation location);
0N/Avoid threadControl_saveCLEInfo(JNIEnv *env, jthread thread, EventIndex ei,
0N/A jclass clazz, jmethodID method,
0N/A jlocation location);
0N/Ajlong threadControl_getFrameGeneration(jthread thread);
0N/A
0N/A#endif