Exemplo n.º 1
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;
     }
 }
Exemplo n.º 2
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;
		}
 /// <summary>
 /// Required to implement MarshalByRefObject.
 /// </summary>
 /// <returns>Hash Code.</returns>
 public override int GetHashCode()
 {
     return(m_frame.GetHashCode());
 }