diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2005-03-15 16:03:49 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2005-03-15 16:03:49 +0300 |
commit | 69158eed22017d1f85c181f28460c31332d40bb0 (patch) | |
tree | 53f520d47edc73bdc94671459f7a2d3c5f326909 /mcs/class/corlib/System.Security/SecurityFrame.cs | |
parent | 6acf3e50793c9e66bafd3a8a911cc29730cd9a3a (diff) |
2005-03-15 Sebastien Pouliot <sebastien@ximian.com>
* CodeAccessPermission.cs: Fixed depth for starting the stack walk
(imperative) and fixed assert condition.
* PermissionSet.cs: Fixed depth for starting the stack walk.
* SecurityFrame.cs: Reversed stack. Added optional debugging code.
svn path=/trunk/mcs/; revision=41834
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityFrame.cs')
-rw-r--r-- | mcs/class/corlib/System.Security/SecurityFrame.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityFrame.cs b/mcs/class/corlib/System.Security/SecurityFrame.cs index 2d620fd0d51..c0b031c0519 100644 --- a/mcs/class/corlib/System.Security/SecurityFrame.cs +++ b/mcs/class/corlib/System.Security/SecurityFrame.cs @@ -148,6 +148,15 @@ namespace System.Security { foreach (RuntimeSecurityFrame frame in stack) { al.Add (new SecurityFrame (frame)); } + al.Reverse (); +#if false + Console.WriteLine ("Stack Dump (skip {0})", skipFrames); + int i=1; + foreach (SecurityFrame f in al) { + Console.WriteLine ("\t{0}. {1}", i++, f.Method); + } + Console.WriteLine ("End Stack Dump"); +#endif return al; } } |