Add some code
authorMiguel de Icaza <miguel@gnome.org>
Thu, 8 Apr 2010 05:04:00 +0000 (05:04 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 8 Apr 2010 05:04:00 +0000 (05:04 -0000)
svn path=/trunk/mcs/; revision=155026

mcs/class/corlib/System.Diagnostics/StackTrace.cs

index ecac0ad277ea14ef7e3d802adee3b4144ed79e9b..e8ec9fb650d7bbe9cefd9f2b6a0d31efdcc14fcb 100644 (file)
@@ -150,6 +150,11 @@ namespace System.Diagnostics {
                [MonoLimitation ("Not possible to create StackTraces from other threads")]
                public StackTrace (Thread targetThread, bool needFileInfo)
                {
+                       if (targetThread == Thread.CurrentThread){
+                               init_frames (METHODS_TO_SKIP, needFileInfo);
+                               return;
+                       }
+                       
                        throw new NotImplementedException ();
                }