Author: martin
Date: 2007-01-17 12:29:52 -0500 (Wed, 17 Jan 2007)
New Revision: 71219

Modified:
   trunk/debugger/ChangeLog
   trunk/debugger/classes/Backtrace.cs
Log:
2007-01-17  Martin Baulig  <[EMAIL PROTECTED]>

        * classes/Backtrace.cs
        (Backtrace.TryUnwind): Temporarily disable the LMF code until I
        tested in on x86_64 tomorrow.



Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog    2007-01-17 17:28:20 UTC (rev 71218)
+++ trunk/debugger/ChangeLog    2007-01-17 17:29:52 UTC (rev 71219)
@@ -1,6 +1,12 @@
 2007-01-17  Martin Baulig  <[EMAIL PROTECTED]>
 
        * classes/Backtrace.cs
+       (Backtrace.TryUnwind): Temporarily disable the LMF code until I
+       tested in on x86_64 tomorrow.
+
+2007-01-17  Martin Baulig  <[EMAIL PROTECTED]>
+
+       * classes/Backtrace.cs
        (Backtrace.GetBacktrace): Make this internal and take a
        `ThreadServant'.
        (Backtrace.TryUnwind): Likewise.

Modified: trunk/debugger/classes/Backtrace.cs
===================================================================
--- trunk/debugger/classes/Backtrace.cs 2007-01-17 17:28:20 UTC (rev 71218)
+++ trunk/debugger/classes/Backtrace.cs 2007-01-17 17:29:52 UTC (rev 71219)
@@ -56,9 +56,6 @@
                internal void GetBacktrace (ThreadServant target, TargetAddress 
until,
                                            int max_frames)
                {
-                       if (target.Process.IsManaged && 
target.LMFAddress.IsNull)
-                               throw new Exception ("FUCK");
-
                        while (TryUnwind (target, until)) {
                                if ((max_frames != -1) && (frames.Count > 
max_frames))
                                        break;
@@ -73,6 +70,7 @@
                        } catch (TargetException) {
                        }
 
+#if TEST_ME
                        if ((new_frame == null) || (new_frame.SourceAddress == 
null)) {
                                try {
                                        if (!last_frame.Language.IsManaged && 
!target.LMFAddress.IsNull)
@@ -87,6 +85,10 @@
                                if (new_frame.StackPointer < 
last_frame.StackPointer)
                                        return false;
                        }
+#else
+                       if (new_frame == null)
+                               return false;
+#endif
 
                        if (!until.IsNull && (new_frame.StackPointer >= until))
                                return false;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to