Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Karlaš <david.karlas@xamarin.com>2017-01-17 20:35:37 +0300
committerGitHub <noreply@github.com>2017-01-17 20:35:37 +0300
commit05e2e830c0bcdbe6406bad0e040a4dd62987aecc (patch)
treebb29c6cecc40cf655c7e7247ae821fa2410065df /main/src/addins/MonoDevelop.Debugger.Win32
parentbf7ed84a26145fb2e2dbeb8b892f1a47d16e6a18 (diff)
parenta4685e25947276a7c60d76e4c362a22efc82bb96 (diff)
Merge pull request #1789 from JetBrains/breakpointDeactivationFix
[CorDebug] Proper deactivation of breakpoints
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger.Win32')
-rw-r--r--main/src/addins/MonoDevelop.Debugger.Win32/Mono.Debugging.Win32/CorDebuggerSession.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.Win32/Mono.Debugging.Win32/CorDebuggerSession.cs b/main/src/addins/MonoDevelop.Debugger.Win32/Mono.Debugging.Win32/CorDebuggerSession.cs
index a06bee9c44..e8f7ec0b68 100644
--- a/main/src/addins/MonoDevelop.Debugger.Win32/Mono.Debugging.Win32/CorDebuggerSession.cs
+++ b/main/src/addins/MonoDevelop.Debugger.Win32/Mono.Debugging.Win32/CorDebuggerSession.cs
@@ -155,10 +155,23 @@ namespace Mono.Debugging.Win32
helperOperationsQueue.Add (action);
}
+ void DeactivateBreakpoints ()
+ {
+ var breakpointsCopy = breakpoints.Keys.ToList ();
+ foreach (var corBreakpoint in breakpointsCopy) {
+ try {
+ corBreakpoint.Activate (false);
+ }
+ catch (Exception e) {
+ DebuggerLoggingService.LogMessage ("Exception in DeactivateBreakpoints(): {0}", e);
+ }
+ }
+ }
+
void TerminateDebugger ()
{
helperOperationsCancellationTokenSource.Cancel();
- Breakpoints.Clear ();
+ DeactivateBreakpoints ();
lock (terminateLock) {
if (terminated)
return;