예제 #1
0
		public StackFrame (void* ip, void* bp, MethodBoundary methodBoundary)
		{
			this.IP = ip;
			this.BP = bp;
			this.MethodBoundary = methodBoundary;

			if (methodBoundary.ExceptionHandlingClauses != null) {
				this.IgnoreMethodBoundaryClause = new bool [methodBoundary.ExceptionHandlingClauses.Length];

				for (int i = 0; i < this.IgnoreMethodBoundaryClause.Length; i++)
					this.IgnoreMethodBoundaryClause [i] = false;
			} else
				this.IgnoreMethodBoundaryClause = new bool [0];
		}
예제 #2
0
파일: Runtime.cs 프로젝트: sharpos/SharpOS
		private static void PrintMethodBoundary (MethodBoundary methodBoundary)
		{
			Debug.COM1.Write ("MethodBoundary: ");
			Debug.COM1.WriteLine (methodBoundary.Name);

			if (methodBoundary.ExceptionHandlingClauses != null) {
				Debug.COM1.Write ("\tExceptions: ");
				Debug.COM1.WriteNumber (methodBoundary.ExceptionHandlingClauses.Length, false);
				Debug.COM1.WriteLine ();

				for (int i = 0; i < methodBoundary.ExceptionHandlingClauses.Length; i++)
					PrintExceptionHandlingClauses (methodBoundary.ExceptionHandlingClauses [i]);
			}
		}