Пример #1
0
        // Attach the debug engine to a program.
        int IDebugEngine2.Attach(IDebugProgram2[] rgpPrograms, IDebugProgramNode2[] rgpProgramNodes, uint celtPrograms, IDebugEventCallback2 ad7Callback, enum_ATTACH_REASON dwReason)
        {
            int processId = EngineUtils.GetProcessId(rgpPrograms[0]);

            if (processId == 0)
            {
                return(VSConstants.E_NOTIMPL);
            }

            pID = (uint)processId;

            events = ad7Callback;

            EngineUtils.RequireOk(rgpPrograms[0].GetProgramId(out m_ad7ProgramId));

            AD7EngineCreateEvent.Send(this);

            AD7ProgramCreateEvent.Send(this);

            debugThread = new AD7Thread(this);

            AD7ThreadCreateEvent.Send(this);

            // This event is optional
            AD7LoadCompleteEvent.Send(this);


            return(VSConstants.S_OK);
        }
Пример #2
0
 internal static void Send(AD7Engine engine)
 {
     AD7ThreadCreateEvent eventObject = new AD7ThreadCreateEvent();
     engine.Send(eventObject, IID);
 }
Пример #3
0
        internal static void Send(AD7Engine engine)
        {
            AD7ThreadCreateEvent eventObject = new AD7ThreadCreateEvent();

            engine.Send(eventObject, IID);
        }