Ejemplo n.º 1
0
 public ILCodeBreakpointConditionContext(DnDebugger debugger, DnILCodeBreakpoint bp, BreakpointDebugCallbackEventArgs e)
     : base(debugger)
 {
     ILCodeBreakpoint = bp;
     E = e;
 }
Ejemplo n.º 2
0
		public ILCodeBreakpointPauseState(DnILCodeBreakpoint bp)
			: base(DebuggerPauseReason.ILCodeBreakpoint) {
			this.bp = bp;
		}
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
		/// <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;
		}
Ejemplo n.º 5
0
 public ILCodeBreakpointConditionContext(DnDebugger debugger, DnILCodeBreakpoint bp)
     : base(debugger)
 {
     this.bp = bp;
 }
Ejemplo n.º 6
0
 public ILCodeBreakpointPauseState(DnILCodeBreakpoint bp)
     : base(DebuggerPauseReason.ILCodeBreakpoint)
 {
     this.bp = bp;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
		public ILCodeBreakpointConditionContext(DnDebugger debugger, DnILCodeBreakpoint bp)
			: base(debugger) {
			this.bp = bp;
		}
Ejemplo n.º 9
0
 public ILCodeBreakpointStopState(DnILCodeBreakpoint bp)
     : base(DebuggerStopReason.ILCodeBreakpoint)
 {
     this.bp = bp;
 }
Ejemplo n.º 10
0
 public ILCodeBreakpointStopState(DnILCodeBreakpoint bp)
     : base(DebuggerStopReason.ILCodeBreakpoint)
 {
     this.bp = bp;
 }