diff options
Diffstat (limited to 'extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-2.cs')
-rw-r--r-- | extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-2.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-2.cs b/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-2.cs index 2fee8884f9..3496a09c11 100644 --- a/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-2.cs +++ b/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-2.cs @@ -67,22 +67,25 @@ namespace DebuggerServer public override void ActivateEvent (Mono.Debugger.Event ev) { - Process.ActivatePendingBreakpoints (); + if (Process.MainThread.IsStopped) + ev.Activate (Process.MainThread); + else + ThrowNotSupported ("Breakpoints can't be changed while the process is running."); } public override void RemoveEvent (Mono.Debugger.Event ev) { - Session.RemoveEvent (ev); - Process.ActivatePendingBreakpoints (); + if (!Process.MainThread.IsStopped) + ThrowNotSupported ("Breakpoints can't be changed while the process is running."); + Session.DeleteEvent (ev); } public override void EnableEvent (Mono.Debugger.Event ev, bool enable) { if (enable) - Session.ActivateEventAsync (ev); + ev.Activate (Process.MainThread); else - Session.DeactivateEventAsync (ev); - Process.ActivatePendingBreakpoints (); + ev.Deactivate (Process.MainThread); } } } |