コード例 #1
0
 public NativeCodeBreakpointConditionContext(DnDebugger debugger, DnNativeCodeBreakpoint bp, BreakpointDebugCallbackEventArgs e)
     : base(debugger)
 {
     NativeCodeBreakpoint = bp;
     E = e;
 }
コード例 #2
0
ファイル: DebuggerPauseState.cs プロジェクト: levisre/dnSpy
		public NativeCodeBreakpointPauseState(DnNativeCodeBreakpoint bp)
			: base(DebuggerPauseReason.NativeCodeBreakpoint) {
			this.bp = bp;
		}
コード例 #3
0
		public NativeCodeBreakpointConditionContext(DnDebugger debugger, DnNativeCodeBreakpoint bp)
			: base(debugger) {
			NativeCodeBreakpoint = bp;
		}
コード例 #4
0
ファイル: DnDebugger.cs プロジェクト: manojdjoshi/dnSpy
		/// <summary>
		/// Creates a native instruction breakpoint
		/// </summary>
		/// <param name="code">Native code</param>
		/// <param name="offset">Offset</param>
		/// <param name="cond">Condition</param>
		/// <returns></returns>
		public DnNativeCodeBreakpoint CreateNativeBreakpoint(CorCode code, uint offset, Func<NativeCodeBreakpointConditionContext, bool> cond) {
			DebugVerifyThread();
			var bp = new DnNativeCodeBreakpoint(code, offset, cond);
			var module = code.Function?.Module?.DnModuleId ?? new DnModuleId();
			nativeCodeBreakpointList.Add(module, bp);
			foreach (var dnMod in GetLoadedDnModules(module))
				bp.AddBreakpoint(dnMod);
			return bp;
		}
コード例 #5
0
ファイル: DnDebugger.cs プロジェクト: manojdjoshi/dnSpy
		/// <summary>
		/// Creates a native instruction breakpoint
		/// </summary>
		/// <param name="module">Module</param>
		/// <param name="token">Method token</param>
		/// <param name="offset">Offset</param>
		/// <param name="cond">Condition</param>
		/// <returns></returns>
		public DnNativeCodeBreakpoint CreateNativeBreakpoint(DnModuleId module, uint token, uint offset, Func<NativeCodeBreakpointConditionContext, bool> cond) {
			DebugVerifyThread();
			var bp = new DnNativeCodeBreakpoint(module, token, offset, cond);
			nativeCodeBreakpointList.Add(module, bp);
			foreach (var dnMod in GetLoadedDnModules(module))
				bp.AddBreakpoint(dnMod);
			return bp;
		}
コード例 #6
0
 public NativeCodeBreakpointPauseState(DnNativeCodeBreakpoint bp)
     : base(DebuggerPauseReason.NativeCodeBreakpoint)
 {
     this.bp = bp;
 }
コード例 #7
0
ファイル: NativeBreakpoint.cs プロジェクト: levisre/dnSpy
		public void Initialize(DnDebugger dbg) {
			Debug.Assert(debugger.Dispatcher.CheckAccess());
			Debug.Assert(dbgBreakpoint == null);
			if (dbgBreakpoint != null)
				throw new InvalidOperationException();
			if (code == null)
				dbgBreakpoint = dbg.CreateNativeBreakpoint(module.ToSerializedDnModule(), token, offset, a => cond(this));
			else
				dbgBreakpoint = dbg.CreateNativeBreakpoint(code.CorCode, offset, a => cond(this));
			dbgBreakpoint.IsEnabled = isEnabled;
			dbgBreakpoint.Tag = this;
		}
コード例 #8
0
 public NativeCodeBreakpointConditionContext(DnDebugger debugger, DnNativeCodeBreakpoint bp)
     : base(debugger)
 {
     NativeCodeBreakpoint = bp;
 }