예제 #1
0
            internal void RemoveAllBoundBreakpoints_DbgThread(DbgRuntime runtime)
            {
                Dispatcher.VerifyAccess();
                var boundBreakpoints = BoundCodeBreakpointsService.RemoveBoundBreakpoints_DbgThread(runtime);

                foreach (var bp in boundBreakpoints)
                {
                    bp.Close(Dispatcher);
                }
            }
예제 #2
0
            internal void RemoveBoundCodeBreakpoints_DbgThread(DbgRuntimeImpl runtime, DbgEngineBoundCodeBreakpointImpl[] breakpoints)
            {
                Dispatcher.VerifyAccess();
                Debug.Assert(IsOurEngine(runtime.Engine));
                if (!owner.IsOurEngine(runtime.Engine))
                {
                    foreach (var bp in breakpoints)
                    {
                        bp.BoundCodeBreakpoint.Close(Dispatcher);
                    }
                    return;
                }
                var bps = breakpoints.Select(a => a.BoundCodeBreakpoint).ToArray();

                BoundCodeBreakpointsService.RemoveBoundBreakpoints_DbgThread(bps);
                foreach (var bp in bps)
                {
                    bp.Close(Dispatcher);
                }
            }