Exemple #1
0
 public INativeBreakpoint CreateNativeBreakpoint(IDebuggerCode code, uint offset, Func <INativeBreakpoint, bool> cond) => dispatcher.UI(() => {
     if (code == null)
     {
         throw new ArgumentNullException(nameof(code));
     }
     if (code.IsIL)
     {
         throw new ArgumentException("code is IL code, not native code");
     }
     Debug.Assert(theDebugger.IsDebugging);
     if (!theDebugger.IsDebugging)
     {
         throw new InvalidOperationException();
     }
     var bp = new NativeBreakpoint(this, (DebuggerCode)code, offset, cond);
     Initialize(bp);
     return(bp);
 });
Exemple #2
0
 public INativeBreakpoint CreateNativeBreakpoint(IDebuggerCode code, int offset, Func <INativeBreakpoint, bool> cond) =>
 CreateNativeBreakpoint(code, (uint)offset, cond);
Exemple #3
0
		public INativeBreakpoint CreateNativeBreakpoint(IDebuggerCode code, int offset, Func<INativeBreakpoint, bool> cond) =>
			CreateNativeBreakpoint(code, (uint)offset, cond);
Exemple #4
0
		public INativeBreakpoint CreateNativeBreakpoint(IDebuggerCode code, uint offset, Func<INativeBreakpoint, bool> cond) => dispatcher.UI(() => {
			if (code == null)
				throw new ArgumentNullException(nameof(code));
			if (code.IsIL)
				throw new ArgumentException("code is IL code, not native code");
			Debug.Assert(theDebugger.IsDebugging);
			if (!theDebugger.IsDebugging)
				throw new InvalidOperationException();
			var bp = new NativeBreakpoint(this, (DebuggerCode)code, offset, cond);
			Initialize(bp);
			return bp;
		});