jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/ThreadManager.cpp
void 
ThreadManager::SetHasStepped(JNIEnv *jni, jthread thread, bool hasStepped) {
    MonitorAutoLock lock(m_javathrdmgrMonitor JDWP_FILE_LINE);
    JavaThreadInfoList::iterator result = m_javaThreadInfoList.begin();
    FindJavaThreadInfo(jni, &m_javaThreadInfoList, thread, result);

    jvmtiThreadInfo info;
    jvmtiError err;
    JVMTI_TRACE(LOG_DEBUG, err, GetJvmtiEnv()->GetThreadInfo(thread, &info));
    JvmtiAutoFree jafInfoName(info.name);

    // If we have found a matching entry, set it's value
    if  (result.hasCurrent()) {
            (result.getCurrent())->m_hasStepped = hasStepped;
    }
}
/**
 * Set a boolean for the specified thread indicating if the last 
 * action was a single step 
 *  
 * @param jni - the JNI interface pointer
 * @param thread - the Java thread
 * @param hasStepped - indicates if the last action was a single 
 *                   step
 */
Set a boolean for the specified thread indicating if the last
action was a single step

@param jni - the JNI interface pointer
@param thread - the Java thread
@param hasStepped - indicates if the last action was a single
step
Set a boolean for the specified thread indicating if the last action was a single step @param jni - the JNI interface pointer @param thread - the Java thread @param hasStepped - indicates if the last action was a single step
void 
ThreadManager::SetHasStepped(JNIEnv *jni, jthread thread, bool hasStepped) {
    MonitorAutoLock lock(m_javathrdmgrMonitor JDWP_FILE_LINE);
    JavaThreadInfoList::iterator result = m_javaThreadInfoList.begin();
    FindJavaThreadInfo(jni, &m_javaThreadInfoList, thread, result);
    jvmtiThreadInfo info;
    jvmtiError err;
    JVMTI_TRACE(LOG_DEBUG, err, GetJvmtiEnv()->GetThreadInfo(thread, &info));
    JvmtiAutoFree jafInfoName(info.name);
    if  (result.hasCurrent()) {
            (result.getCurrent())->m_hasStepped = hasStepped;
    }
}
void ThreadManager :: SetHasStepped ( JNIEnv * jni , jthread thread , bool hasStepped ) { MonitorAutoLock lock ( m_javathrdmgrMonitor JDWP_FILE_LINE ) ; JavaThreadInfoList :: iterator result = m_javaThreadInfoList . begin ( ) ; FindJavaThreadInfo ( jni , & m_javaThreadInfoList , thread , result ) ; jvmtiThreadInfo info ; jvmtiError err ; JVMTI_TRACE ( LOG_DEBUG , err , GetJvmtiEnv ( ) -> GetThreadInfo ( thread , & info ) ) ; JvmtiAutoFree jafInfoName ( info . name ) ; if ( result . hasCurrent ( ) ) { ( result . getCurrent ( ) ) -> m_hasStepped = hasStepped ; } }
Set a boolean for the specified thread indicating if the last
 action was a single step
Set a boolean for the specified thread indicating if the last action was a single step
// If we have found a matching entry, set it's value