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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorLucas Meijer <lucas@Lucass-MacBook-Pro.local>2014-01-13 11:52:17 +0400
committerLucas Meijer <lucas@Lucass-MacBook-Pro.local>2014-01-13 11:52:17 +0400
commita650855da84abe5e3768b3513cf4a9841ce26b54 (patch)
treec2c2228a429347e3561e10f2a8503a139ced7767 /mcs
parent269c7e48dcda0db2ecc0c7efd9b87bc7113d1b3c (diff)
allow users to specify a suspension policy when enabling an event
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs
index ce4c285015a..cb2cafdb714 100644
--- a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs
+++ b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs
@@ -227,10 +227,14 @@ namespace Mono.Debugger.Soft
}
public void EnableEvents (params EventType[] events) {
+ EnableEvents (events, SuspendPolicy.All);
+ }
+
+ public void EnableEvents (EventType[] events, SuspendPolicy suspendPolicy) {
foreach (EventType etype in events) {
if (etype == EventType.Breakpoint)
throw new ArgumentException ("Breakpoint events cannot be requested using EnableEvents", "events");
- conn.EnableEvent (etype, SuspendPolicy.All, null);
+ conn.EnableEvent (etype, suspendPolicy, null);
}
}