Author: martin
Date: 2005-09-07 11:37:25 -0400 (Wed, 07 Sep 2005)
New Revision: 49639

Modified:
   trunk/debugger/ChangeLog
   trunk/debugger/backends/SingleSteppingEngine.cs
Log:
2005-09-07  Martin Baulig  <[EMAIL PROTECTED]>

        * backends/SingleSteppingEngine.cs
        (SingleSteppingEngine.ProcessChildEvent): Handle exceptions first.



Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog    2005-09-07 15:16:43 UTC (rev 49638)
+++ trunk/debugger/ChangeLog    2005-09-07 15:37:25 UTC (rev 49639)
@@ -1,5 +1,10 @@
 2005-09-07  Martin Baulig  <[EMAIL PROTECTED]>
 
+       * backends/SingleSteppingEngine.cs
+       (SingleSteppingEngine.ProcessChildEvent): Handle exceptions first.
+
+2005-09-07  Martin Baulig  <[EMAIL PROTECTED]>
+
        * interfaces/ITargetFunctionObject.cs
        (ITargetFunctionObject.Invoke): Removed the `bool debug' argument.
 

Modified: trunk/debugger/backends/SingleSteppingEngine.cs
===================================================================
--- trunk/debugger/backends/SingleSteppingEngine.cs     2005-09-07 15:16:43 UTC 
(rev 49638)
+++ trunk/debugger/backends/SingleSteppingEngine.cs     2005-09-07 15:37:25 UTC 
(rev 49639)
@@ -204,27 +204,6 @@
                        Inferior.ChildEventType message = cevent.Type;
                        int arg = (int) cevent.Argument;
 
-                       // Callbacks happen when the user (or the engine) 
called a method
-                       // in the target (RuntimeInvoke).
-                       if (current_callback != null) {
-                               TargetEventArgs args;
-                               if (!current_callback.ProcessEvent (this, 
inferior, cevent,
-                                                                   out args))
-                                       return;
-
-                               current_callback = null;
-
-                               if (message == 
Inferior.ChildEventType.CHILD_CALLBACK) {
-                                       Report.Debug (DebugFlags.EventLoop,
-                                                     "{0} completed callback", 
this);
-
-                                       // Ok, inform the user that we stopped.
-                                       step_operation_finished ();
-                                       operation_completed (args);
-                                       return;
-                               }
-                       }
-
                        TargetEventArgs result = null;
 
                        if ((message == 
Inferior.ChildEventType.THROW_EXCEPTION) ||
@@ -257,9 +236,28 @@
                                        return;
                                }
 
-                               if (temp_breakpoint_id != 0) {
-                                       do_continue ();
+                               do_continue ();
+                               return;
+                       }
+
+                       // Callbacks happen when the user (or the engine) 
called a method
+                       // in the target (RuntimeInvoke).
+                       if (current_callback != null) {
+                               TargetEventArgs args;
+                               if (!current_callback.ProcessEvent (this, 
inferior, cevent,
+                                                                   out args))
                                        return;
+
+                               current_callback = null;
+
+                               if (message == 
Inferior.ChildEventType.CHILD_CALLBACK) {
+                                       Report.Debug (DebugFlags.EventLoop,
+                                                     "{0} completed callback", 
this);
+
+                                       // Ok, inform the user that we stopped.
+                                       step_operation_finished ();
+                                       operation_completed (args);
+                                       return;
                                }
                        }
 
@@ -2471,6 +2469,12 @@
                        args = null;
                        return true;
                }
+
+               public override bool HandleException (SingleSteppingEngine sse,
+                                                     TargetAddress stack, 
TargetAddress exc)
+               {
+                       return false;
+               }
        }
 
        protected class OperationCallMethod : Operation

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

Reply via email to