public ILCodeBreakpointConditionContext(DnDebugger debugger, DnILCodeBreakpoint bp, BreakpointDebugCallbackEventArgs e) : base(debugger) { ILCodeBreakpoint = bp; E = e; }
public ILCodeBreakpointPauseState(DnILCodeBreakpoint bp) : base(DebuggerPauseReason.ILCodeBreakpoint) { this.bp = bp; }
/// <summary> /// Creates an IL instruction breakpoint /// </summary> /// <param name="module">Module</param> /// <param name="token">Method token</param> /// <param name="ilOffset">IL offset</param> /// <param name="bpCond">Condition or null</param> /// <returns></returns> public DnILCodeBreakpoint CreateBreakpoint(SerializedDnModule module, uint token, uint ilOffset, IBreakpointCondition bpCond = null) { DebugVerifyThread(); var bp = new DnILCodeBreakpoint(module, token, ilOffset, bpCond); ilCodeBreakpointList.Add(module, bp); foreach (var dnMod in GetLoadedDnModules(module)) bp.AddBreakpoint(dnMod); return bp; }
/// <summary> /// Creates an IL instruction breakpoint /// </summary> /// <param name="module">Module</param> /// <param name="token">Method token</param> /// <param name="offset">IL offset</param> /// <param name="cond">Condition</param> /// <returns></returns> public DnILCodeBreakpoint CreateBreakpoint(DnModuleId module, uint token, uint offset, Func<ILCodeBreakpointConditionContext, bool> cond) { DebugVerifyThread(); var bp = new DnILCodeBreakpoint(module, token, offset, cond); ilCodeBreakpointList.Add(module, bp); foreach (var dnMod in GetLoadedDnModules(module)) bp.AddBreakpoint(dnMod); return bp; }
public ILCodeBreakpointConditionContext(DnDebugger debugger, DnILCodeBreakpoint bp) : base(debugger) { this.bp = bp; }
public void Initialize(DnDebugger dbg) { Debug.Assert(debugger.Dispatcher.CheckAccess()); Debug.Assert(dbgBreakpoint == null); if (dbgBreakpoint != null) throw new InvalidOperationException(); dbgBreakpoint = dbg.CreateBreakpoint(module.ToSerializedDnModule(), token, offset, a => cond(this)); dbgBreakpoint.IsEnabled = isEnabled; dbgBreakpoint.Tag = this; }
public ILCodeBreakpointStopState(DnILCodeBreakpoint bp) : base(DebuggerStopReason.ILCodeBreakpoint) { this.bp = bp; }