Example #1
2
		public DebuggerCode(Debugger debugger, CorCode code) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			CorCode = code;
			hashCode = code.GetHashCode();
			address = code.Address;
			size = code.Size;
			isIL = code.IsIL;
		}
Example #2
1
 public StackChain(Debugger debugger, CorChain chain)
 {
     debugger.Dispatcher.VerifyAccess();
     this.debugger = debugger;
     this.chain = chain;
     this.hashCode = chain.GetHashCode();
     this.isManaged = chain.IsManaged;
     this.reason = (ChainReason)chain.Reason;
     this.stackStart = chain.StackStart;
     this.stackEnd = chain.StackEnd;
 }
Example #3
1
		public NameChangeEventContext(Debugger debugger, DBG.NameChangeDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #4
1
		public LogSwitchEventContext(Debugger debugger, DBG.LogSwitchDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #5
0
		public DebuggerAppDomain(Debugger debugger, DnAppDomain appDomain) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			DnAppDomain = appDomain;
			hashCode = appDomain.GetHashCode();
			Id = appDomain.Id;
		}
Example #6
0
		public DebuggerAssembly(Debugger debugger, DnAssembly asm) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			this.asm = asm;
			this.hashCode = asm.GetHashCode();
			this.uniqueId = asm.UniqueId;
			this.name = asm.Name;
		}
Example #7
0
		public ProcessEventContext(Debugger debugger, DBG.ProcessDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
		}
Example #8
0
		public CustomNotificationEventContext(Debugger debugger, DBG.CustomNotificationDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #9
0
		protected DebugEventContext(Debugger debugger, DebugEventKind eventKind) {
			this.debugger = debugger;
			this.eventKind = eventKind;
		}
Example #10
0
		public MDANotificationEventContext(Debugger debugger, DBG.MDANotificationDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
			this.mda = e.CorMDA;
		}
Example #11
0
		public UpdateModuleSymbolsEventContext(Debugger debugger, DBG.UpdateModuleSymbolsDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #12
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 #13
0
		public ClassEventContext(Debugger debugger, DBG.ClassDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #14
0
		public StackFrame(Debugger debugger, CorFrame frame, int frameNo) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			this.frame = frame;
			this.frameNo = frameNo;
			this.hashCode = frame.GetHashCode();
			this.ilFrameIP = new Contracts.Scripting.Debugger.ILFrameIP(frame.ILFrameIP.Offset, (MappingResult)frame.ILFrameIP.Mapping);
			this.nativeFrameIP = frame.NativeFrameIP;
			this.token = frame.Token;
			this.stackStart = frame.StackStart;
			this.stackEnd = frame.StackEnd;
			this.sfFlags = 0;
			if (frame.IsILFrame)
				this.sfFlags |= SFFlags.ILFrame;
			if (frame.IsInternalFrame)
				this.sfFlags |= SFFlags.InternalFrame;
			if (frame.IsNativeFrame)
				this.sfFlags |= SFFlags.NativeFrame;
			if (frame.IsRuntimeUnwindableFrame)
				this.sfFlags |= SFFlags.RuntimeUnwindableFrame;
		}
Example #15
0
		public AssemblyEventContext(Debugger debugger, DBG.AssemblyDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #16
0
		public AppDomainEventContext(Debugger debugger, DBG.AppDomainDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #17
0
		public LogMessageEventContext(Debugger debugger, DBG.LogMessageDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			args = e;
		}
Example #18
0
		public DebuggerMethod(Debugger debugger, CorFunction func) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			CorFunction = func;
			hashCode = func.GetHashCode();
			LocalVarSigToken = func.LocalVarSigToken;
			Token = func.Token;
			func.GetAttributes(out implAttributes, out attributes);
		}
Example #19
0
		public ThreadEventContext(Debugger debugger, DBG.ThreadDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #20
0
		public ControlCTrapEventContext(Debugger debugger, DBG.ControlCTrapDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
		}
Example #21
0
		public ModuleEventContext(Debugger debugger, DBG.ModuleDebugCallbackEventArgs e)
			: base(debugger, e.Kind.ToDebugEventKind()) {
			this.args = e;
		}
Example #22
0
		public DebuggerField(Debugger debugger, CorField field) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			this.field = field;
			this.hashCode = field.GetHashCode();
			this.token = field.Token;
			this.name = field.GetName() ?? string.Empty;
			this.attributes = field.GetAttributes();
		}
Example #23
0
		public DebuggerProperty(Debugger debugger, CorProperty prop) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			this.prop = prop;
			this.hashCode = prop.GetHashCode();
			this.token = prop.Token;
			this.name = prop.GetName() ?? string.Empty;
			this.attributes = prop.GetAttributes();
		}
Example #24
0
		public DebuggerEvent(Debugger debugger, CorEvent evt) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			this.evt = evt;
			this.hashCode = evt.GetHashCode();
			this.token = evt.Token;
			this.name = evt.GetName() ?? string.Empty;
			this.attributes = evt.GetAttributes();
		}