diff options
3 files changed, 34 insertions, 6 deletions
diff --git a/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/ChangeLog b/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/ChangeLog index c5101459a0..1fd618ea4e 100644 --- a/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/ChangeLog +++ b/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/ChangeLog @@ -1,3 +1,9 @@ +2009-09-01 Lluis Sanchez Gual <lluis@novell.com> + + * MdbAdaptor-2-4-4.cs: + * MdbAdaptor-2-4-2.cs: Breakpoint activation while running was + not supported by mono 2.4.2. + 2009-08-28 Lluis Sanchez Gual <lluis@novell.com> * MdbObjectValueAdaptor.cs: Fixed some issue with static 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); } } } diff --git a/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-4.cs b/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-4.cs index 55b30ad9df..50ceaf7d87 100644 --- a/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-4.cs +++ b/extras/MonoDevelop.Debugger.Mdb/Mono.Debugging.Server.Mdb/MdbAdaptor-2-4-4.cs @@ -30,5 +30,24 @@ namespace DebuggerServer { public class MdbAdaptor_2_4_4: MdbAdaptor_2_4_2 { + public override void ActivateEvent (Mono.Debugger.Event ev) + { + Process.ActivatePendingBreakpoints (); + } + + public override void RemoveEvent (Mono.Debugger.Event ev) + { + Session.RemoveEvent (ev); + Process.ActivatePendingBreakpoints (); + } + + public override void EnableEvent (Mono.Debugger.Event ev, bool enable) + { + if (enable) + Session.ActivateEventAsync (ev); + else + Session.DeactivateEventAsync (ev); + Process.ActivatePendingBreakpoints (); + } } } |