public InterpreterEventSink(Interpreter interpreter, Debugger debugger) { this.interpreter = interpreter; debugger.TargetExitedEvent += target_exited; debugger.ThreadCreatedEvent += thread_created; debugger.ManagedThreadCreatedEvent += managed_thread_created; debugger.ThreadExitedEvent += thread_exited; debugger.MainProcessCreatedEvent += main_process_created; debugger.ProcessReachedMainEvent += process_reached_main; debugger.ProcessCreatedEvent += process_created; debugger.ProcessExitedEvent += process_exited; debugger.ProcessExecdEvent += process_execd; debugger.TargetEvent += target_event; debugger.EnterNestedBreakStateEvent += delegate(Debugger unused, Thread thread) { interpreter.OnEnterNestedBreakState(thread); }; debugger.LeaveNestedBreakStateEvent += delegate(Debugger unused, Thread thread) { interpreter.OnLeaveNestedBreakState(thread); }; }
public InterpreterEventSink(Interpreter interpreter, Debugger debugger) { this.interpreter = interpreter; debugger.TargetExitedEvent += target_exited; debugger.ThreadCreatedEvent += thread_created; debugger.ManagedThreadCreatedEvent += managed_thread_created; debugger.ThreadExitedEvent += thread_exited; debugger.MainProcessCreatedEvent += main_process_created; debugger.ProcessReachedMainEvent += process_reached_main; debugger.ProcessCreatedEvent += process_created; debugger.ProcessExitedEvent += process_exited; debugger.ProcessExecdEvent += process_execd; debugger.TargetEvent += target_event; debugger.EnterNestedBreakStateEvent += delegate (Debugger unused, Thread thread) { interpreter.OnEnterNestedBreakState (thread); }; debugger.LeaveNestedBreakStateEvent += delegate (Debugger unused, Thread thread) { interpreter.OnLeaveNestedBreakState (thread); }; }