Beispiel #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;
     }
 }
Beispiel #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;
		}