VSNDK.DebugEngine.HandleProcessExecution.onInterrupt C# (CSharp) Method

onInterrupt() private method

Update VS when the debugging process is interrupted in GDB.
private onInterrupt ( int threadID ) : void
threadID int Thread ID.
return void
        private void onInterrupt(int threadID)
        {
            Debug.Assert(m_eventDispatcher.engine.m_state == AD7Engine.DE_STATE.RUN_MODE);
            m_eventDispatcher.engine.m_state = AD7Engine.DE_STATE.BREAK_MODE;

            if (m_file != "" && m_line > 0)
            {
                // Visual Studio shows the line position one more than it actually is
                m_eventDispatcher.engine.m_docContext = m_eventDispatcher.getDocumentContext(m_file, (uint)(m_line - 1));
            }

            // Only send OnAsyncBreakComplete if break-all was requested by the user
            if (!m_needsResumeAfterInterrupt)
            {
                m_eventDispatcher.engine.Callback.OnAsyncBreakComplete(m_eventDispatcher.engine.selectThread(threadID.ToString()));
            }
        }