Author: martin
Date: 2006-04-25 08:30:43 -0400 (Tue, 25 Apr 2006)
New Revision: 59849

Modified:
   trunk/debugger/ChangeLog
   trunk/debugger/backends/BreakpointManager.cs
Log:
2006-04-25  Martin Baulig  <[EMAIL PROTECTED]>

        * backends/BreakpointManager.cs
        (BreakpointManager.RemoveAllBreakpoints): New public method.



Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog    2006-04-25 12:29:26 UTC (rev 59848)
+++ trunk/debugger/ChangeLog    2006-04-25 12:30:43 UTC (rev 59849)
@@ -1,5 +1,10 @@
 2006-04-25  Martin Baulig  <[EMAIL PROTECTED]>
 
+       * backends/BreakpointManager.cs
+       (BreakpointManager.RemoveAllBreakpoints): New public method.
+
+2006-04-25  Martin Baulig  <[EMAIL PROTECTED]>
+
        * backends/MonoThreadManager.cs
        (MonoMetadataInfo): New internal struct; splitted out from
        `MonoBuiltinTypeInfo' in MonoLanguageBackend.cs.

Modified: trunk/debugger/backends/BreakpointManager.cs
===================================================================
--- trunk/debugger/backends/BreakpointManager.cs        2006-04-25 12:29:26 UTC 
(rev 59848)
+++ trunk/debugger/backends/BreakpointManager.cs        2006-04-25 12:30:43 UTC 
(rev 59849)
@@ -155,6 +155,24 @@
                        }
                }
 
+               public void RemoveAllBreakpoints (Inferior inferior)
+               {
+                       Lock ();
+                       try {
+                               int[] indices = new int [breakpoints.Count];
+                               breakpoints.Keys.CopyTo (indices, 0);
+
+                               for (int i = 0; i < indices.Length; i++) {
+                                       int idx = indices [i];
+                                       Breakpoint bpt = (Breakpoint) 
breakpoints [idx];
+
+                                       RemoveBreakpoint (inferior, idx);
+                               }
+                       } finally {
+                               Unlock ();
+                       }
+               }
+
                //
                // IDisposable
                //

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

Reply via email to