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
path: root/extras
diff options
context:
space:
mode:
authorTherzok <teromario@yahoo.com>2013-08-29 21:01:54 +0400
committerTherzok <teromario@yahoo.com>2013-09-03 02:21:15 +0400
commite348dbaccde2bb935c0be908910765ed2850d3f7 (patch)
tree4b98df29596644c0c0a7d3811a7f1b64e357f508 /extras
parent0619e79a63d9d401f90ce26c9d1dcc01f49ddb2d (diff)
[CorDebug] Use Increment as BreakEventInfo only supports incrementing.
Diffstat (limited to 'extras')
-rw-r--r--extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorDebuggerSession.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorDebuggerSession.cs b/extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorDebuggerSession.cs
index d8c412e9b1..eba9af95a2 100644
--- a/extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorDebuggerSession.cs
+++ b/extras/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorDebuggerSession.cs
@@ -265,12 +265,10 @@ namespace MonoDevelop.Debugger.Win32
if (breakpoints.TryGetValue (e.Breakpoint, out binfo)) {
e.Continue = true;
Breakpoint bp = (Breakpoint)binfo.BreakEvent;
-
- if (bp.HitCount > 1) {
- // Just update the count and continue
- binfo.UpdateHitCount (bp.HitCount - 1);
+
+ binfo.IncrementHitCount();
+ if (!binfo.HitCountReached)
return;
- }
if (!string.IsNullOrEmpty (bp.ConditionExpression)) {
string res = EvaluateExpression (e.Thread, bp.ConditionExpression);