Example #1
0
 public DebuggerState(DebugCallbackEventArgs e, DnProcess process, DnAppDomain appDomain, DnThread thread)
 {
     EventArgs   = e;
     PauseStates = null;
     Process     = process;
     AppDomain   = appDomain;
     Thread      = thread;
 }
Example #2
0
 public DebuggerState(DebugCallbackEventArgs e, DnProcess process, DnAppDomain appDomain, DnThread thread)
 {
     this.EventArgs = e;
     this.StopStates = null;
     this.Process = process;
     this.AppDomain = appDomain;
     this.Thread = thread;
 }
Example #3
0
 public DebuggerState(DebugCallbackEventArgs e, DnProcess process, DnAppDomain appDomain, DnThread thread)
 {
     this.EventArgs   = e;
     this.PauseStates = null;
     this.Process     = process;
     this.AppDomain   = appDomain;
     this.Thread      = thread;
 }
Example #4
0
 public DebuggerThread(Debugger debugger, DBG.DnThread thread)
 {
     debugger.Dispatcher.VerifyAccess();
     this.debugger = debugger;
     this.thread   = thread;
     uniqueId      = thread.UniqueId;
     hashCode      = thread.GetHashCode();
 }
Example #5
0
		public ValueContext(ILocalsOwner localsOwner, CorFrame frame, DnThread thread) {
			this.LocalsOwner = localsOwner;
			this.Thread = thread;
			this.Process = thread.Process;

			// Read everything immediately since the frame will be neutered when Continue() is called
			this.FrameCouldBeNeutered = frame;
			frame.GetTypeAndMethodGenericParameters(out genericTypeArguments, out genericMethodArguments);
			this.Function = frame.Function;
		}
Example #6
0
		public ValueContext(ILocalsOwner localsOwner, CorFrame frame, DnThread thread, IList<CorType> genericTypeArguments) {
			this.LocalsOwner = localsOwner;
			this.Thread = thread;
			this.Process = thread.Process;

			// Read everything immediately since the frame will be neutered when Continue() is called
			this.FrameCouldBeNeutered = frame;
			this.genericTypeArguments = genericTypeArguments;
			this.genericMethodArguments = new CorType[0];
			this.Function = frame == null ? null : frame.Function;
		}
Example #7
0
		public ValueContext(ILocalsOwner localsOwner, CorFrame frame, DnThread thread, DnProcess process) {
			this.LocalsOwner = localsOwner;
			this.Thread = thread;
			this.Process = process;
			Debug.Assert(thread == null || thread.Process == process);

			// Read everything immediately since the frame will be neutered when Continue() is called
			this.FrameCouldBeNeutered = frame;
			if (frame == null) {
				genericTypeArguments = genericMethodArguments = new List<CorType>();
				this.Function = null;
			}
			else {
				frame.GetTypeAndMethodGenericParameters(out genericTypeArguments, out genericMethodArguments);
				this.Function = frame.Function;
			}
		}
Example #8
0
		internal void NameChanged(DnThread thread) {
			if (thread == this.thread)
				reinitName = true;
		}
Example #9
0
		public ThreadVM(DnThread thread, IThreadContext context) {
			this.thread = thread;
			this.context = context;
		}
Example #10
0
 public void SetThread(DnThread thread)
 {
     SetThread(thread.CorThread);
 }
Example #11
0
		public ThreadVM(DnThread thread) {
			this.thread = thread;
		}
Example #12
0
 public ThreadDebuggerEventArgs(DnThread thread, bool added)
 {
     Thread = thread;
     Added  = added;
 }
Example #13
0
		void CallOnNameChanged(DnAppDomain appDomain, DnThread thread) =>
			OnNameChanged?.Invoke(this, new NameChangedDebuggerEventArgs(appDomain, thread));
Example #14
0
		public DebuggerThread(Debugger debugger, DBG.DnThread thread) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			this.thread = thread;
			this.uniqueId = thread.UniqueId;
			this.hashCode = thread.GetHashCode();
		}
Example #15
0
		public ValueContext(ILocalsOwner localsOwner, CorFrame frame, DnThread thread, List<CorType> genericTypeArguments) {
			LocalsOwner = localsOwner;
			Thread = thread;
			Process = thread.Process;

			// Read everything immediately since the frame will be neutered when Continue() is called
			FrameCouldBeNeutered = frame;
			this.genericTypeArguments = genericTypeArguments;
			genericMethodArguments = new List<CorType>();
			Function = frame?.Function;
		}
Example #16
0
		public NameChangedDebuggerEventArgs(DnAppDomain appDomain, DnThread thread) {
			this.AppDomain = appDomain;
			this.Thread = thread;
		}
Example #17
0
 public void SetThread(DnThread thread)
 {
     SetThread(thread.CorThread);
 }
Example #18
0
 public NameChangedDebuggerEventArgs(DnAppDomain appDomain, DnThread thread)
 {
     AppDomain = appDomain;
     Thread    = thread;
 }
Example #19
0
		public ThreadVM(DnThread thread, IThreadContext context) {
			Thread = thread;
			Context = context;
		}
Example #20
0
 void CallOnNameChanged(DnAppDomain appDomain, DnThread thread)
 {
     if (OnNameChanged != null)
         OnNameChanged(this, new NameChangedDebuggerEventArgs(appDomain, thread));
 }
Example #21
0
		public DebuggerState(DebugCallbackEventArgs e, DnProcess process, DnAppDomain appDomain, DnThread thread) {
			EventArgs = e;
			PauseStates = null;
			Process = process;
			AppDomain = appDomain;
			Thread = thread;
		}