diff options
author | Lucas Meijer <lucas@Lucass-MacBook-Pro.local> | 2014-01-13 11:52:17 +0400 |
---|---|---|
committer | Lucas Meijer <lucas@Lucass-MacBook-Pro.local> | 2014-01-13 11:52:17 +0400 |
commit | a650855da84abe5e3768b3513cf4a9841ce26b54 (patch) | |
tree | c2c2228a429347e3561e10f2a8503a139ced7767 /mcs/class | |
parent | 269c7e48dcda0db2ecc0c7efd9b87bc7113d1b3c (diff) |
allow users to specify a suspension policy when enabling an event
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/VirtualMachine.cs | 6 |
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); } } |