Inheritance: DebuggerMarshalByRefObject
Example #1
0
 internal bool ActivatePendingBreakpoints_internal(CommandResult result)
 {
     return ((SingleSteppingEngine) main_thread).ManagedCallback (
         delegate (SingleSteppingEngine sse) {
             return sse.ActivatePendingBreakpoints (null);
         }, result);
 }
Example #2
0
        public bool Wait(CommandResult result)
        {
            if (result == null)
                return true;

            ClearInterrupt ();
            WaitHandle[] handles = new WaitHandle [2];
            handles [0] = interrupt_event;
            handles [1] = result.CompletedEvent;

            int ret = WaitHandle.WaitAny (handles);

            if (ret == 0) {
                result.Abort ();
                result.CompletedEvent.WaitOne ();
                return false;
            }

            if (result.Result is Exception)
                throw (Exception) result.Result;

            return true;
        }
Example #3
0
        public Process Run(DebuggerSession session, out CommandResult result)
        {
            check_alive ();

            if (main_process != null)
                throw new TargetException (TargetError.AlreadyHaveTarget);

            ProcessStart start = new ProcessStart (session);
            main_process = thread_manager.StartApplication (start, out result);
            return main_process;
        }