This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Don't activate address breakpoints twice.

2009-11-25  Martin Baulig  <martin@ximian.com>

	Don't activate address breakpoints twice.

	* classes/AddressBreakpoint.cs
	(AddressBreakpoint.NeedsActivation): Overwrite and return `false'.

	* frontend/Command.cs
	(BreakCommand.DoExecute): Check `Breakpoint.NeedsActivation' before
	calling Activate() on it.

svn path=/trunk/debugger/; revision=147673
  • Loading branch information...
Martin Baulig
Martin Baulig committed Dec 4, 2009
1 parent 16a09fb commit b631f2f2fd41bf288ade582014dae44584b1788e
Showing with 17 additions and 1 deletion.
  1. +11 −0 ChangeLog
  2. +4 −0 classes/AddressBreakpoint.cs
  3. +2 −1 frontend/Command.cs
View
@@ -1,3 +1,14 @@
+2009-11-25 Martin Baulig <martin@ximian.com>
+
+ Don't activate address breakpoints twice.
+
+ * classes/AddressBreakpoint.cs
+ (AddressBreakpoint.NeedsActivation): Overwrite and return `false'.
+
+ * frontend/Command.cs
+ (BreakCommand.DoExecute): Check `Breakpoint.NeedsActivation' before
+ calling Activate() on it.
+
2009-10-19 Martin Baulig <martin@ximian.com>
* backend/Inferior.cs
@@ -14,6 +14,10 @@ public class AddressBreakpoint : Breakpoint
get { return false; }
}
+ public override bool NeedsActivation {
+ get { return false; }
+ }
+
public TargetAddress Address {
get { return address; }
}
View
@@ -3291,7 +3291,8 @@ protected override object DoExecute (ScriptingContext context)
return handle.Index;
try {
- handle.Activate (context.Interpreter.CurrentThread);
+ if (handle.NeedsActivation)
+ handle.Activate (context.Interpreter.CurrentThread);
} catch {
if (!lazy)
throw;

0 comments on commit b631f2f

Please sign in to comment.