jdktools/modules/jpda/src/main/native/jdwp/common/agent/core/ThreadManager.cpp
bool 
ThreadManager::HasStepped(JNIEnv *jni, jthread thread) {
    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, return it's value
    if  (result.hasCurrent()) {
            return (result.getCurrent())->m_hasStepped;
    }

    return false;
}
/**
 * Return an indication of whether the last action on the 
 * specified Java thread was a single step. 
 *  
 * @param jni - the JNI interface pointer
 * @param thread - the Java thread to query
 * 
 * @return bool - indicates if the last action was a single step
 */
Return an indication of whether the last action on the
specified Java thread was a single step.

@param jni - the JNI interface pointer
@param thread - the Java thread to query

@return bool - indicates if the last action was a single step
Return an indication of whether the last action on the specified Java thread was a single step . @param jni - the JNI interface pointer @param thread - the Java thread to query @return bool - indicates if the last action was a single step
bool 
ThreadManager::HasStepped(JNIEnv *jni, jthread thread) {
    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()) {
            return (result.getCurrent())->m_hasStepped;
    }
    return false;
}
bool ThreadManager :: HasStepped ( JNIEnv * jni , jthread thread ) { 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 ( ) ) { return ( result . getCurrent ( ) ) -> m_hasStepped ; } return false ; }
Return an indication of whether the last action on the
 specified Java thread was a single step.
Return an indication of whether the last action on the specified Java thread was a single step .
// If we have found a matching entry, return it's value