コード例 #1
0
 public MonoExpression(MonoEngine engine, MonoThread thread, ObjectValue value, string expression)
 {
     _engine     = engine;
     _thread     = thread;
     _value      = value;
     _expression = expression;
 }
コード例 #2
0
        public int ExecuteOnThread(IDebugThread2 pThread)
        {
            MonoThread thread = (MonoThread)pThread;

            if (_softDebugger.ActiveThread != null && _softDebugger.ActiveThread.Id != thread.ID)
            {
                thread.SetActive();
            }

            _softDebugger.Continue();

            return(S_OK);
        }
コード例 #3
0
        public MonoThread Remove(long id)
        {
            if (!_threads.ContainsKey(id))
            {
                return(null);
            }

            MonoThread thread = _threads[id];

            _threads.Remove(id);

            return(thread);
        }
コード例 #4
0
        private void event_TargetThreadStopped(object sender, TargetEventArgs e)
        {
            MonoThread thread = _debugEngine.ThreadManager.Remove(e.Thread.Id);

            _debugEngine.Callback.OnThreadDestroy(thread);
        }
コード例 #5
0
        private void event_TargetThreadStarted(object sender, TargetEventArgs e)
        {
            MonoThread thread = _debugEngine.ThreadManager.AddThread(e.Thread);

            _debugEngine.Callback.OnThreadCreate(thread);
        }
コード例 #6
0
 public MonoStackFrame(MonoEngine engine, MonoThread thread, StackFrame frame)
 {
     _engine         = engine;
     _thread         = thread;
     _monoStackFrame = frame;
 }
コード例 #7
0
 public void OnExceptionThrown(ExceptionInfo info, MonoThread thread)
 {
     _callback.Event(_engine, _engine.Process, _engine, thread, new DebugEventException(_engine, info), ref DebugEventException.ID, DebugEventException.Attributes);
 }
コード例 #8
0
 public void OnExpressionEvaluated(MonoExpression expression, ObjectValue expValue, string expString, MonoThread thread)
 {
     _callback.Event(_engine, _engine.Process, _engine, thread, new DebugEventExpressionComplete(expression, expValue, expString), ref DebugEventExpressionComplete.ID, DebugEventExpressionComplete.Attributes);
 }
コード例 #9
0
 public void OnBreakpointHit(MonoPendingBreakpoint bp, MonoThread thread)
 {
     _callback.Event(_engine, _engine.Process, _engine, thread, new DebugEventBreakpointHit(bp), ref DebugEventBreakpointHit.ID, DebugEventBreakpointHit.Attributes);
 }
コード例 #10
0
 public void OnThreadDestroy(MonoThread thread)
 {
     _callback.Event(_engine, _engine.Process, _engine, thread, new DebugEventThreadDestroy(), ref DebugEventThreadDestroy.ID, DebugEventThreadDestroy.Attributes);
 }