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

onStepCompleted() public static method

Update VS when a step action is completed in GDB.
public static onStepCompleted ( EventDispatcher eventDispatcher, string file, uint line ) : void
eventDispatcher EventDispatcher This object manages debug events in the engine.
file string File name.
line uint Line number.
return void
        public static void onStepCompleted(EventDispatcher eventDispatcher, string file, uint line)
        {
            if (eventDispatcher.engine.m_state == AD7Engine.DE_STATE.STEP_MODE)
            {
                eventDispatcher.engine.m_state = AD7Engine.DE_STATE.BREAK_MODE;

                // Visual Studio shows the line position one more than it actually is
                eventDispatcher.engine.m_docContext = eventDispatcher.getDocumentContext(file, line - 1);
                AD7StepCompletedEvent.Send(eventDispatcher.engine);
            }
        }