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:
authorZoltan Varga <vargaz@gmail.com>2011-10-25 23:39:35 +0400
committerZoltan Varga <vargaz@gmail.com>2011-10-25 23:39:35 +0400
commite7127cbcf3aebc3638f1ed5215480b4ce65eee18 (patch)
tree8915a37365c58fc0b7a1e5a948523d6699edfff1 /main/contrib
parente76bbc3a5e4afec83bd58cb23e8ee6431affe2dd (diff)
Add missing sdb file
Diffstat (limited to 'main/contrib')
-rw-r--r--main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeLoadEventRequest.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeLoadEventRequest.cs b/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeLoadEventRequest.cs
new file mode 100644
index 0000000000..130742b4c8
--- /dev/null
+++ b/main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeLoadEventRequest.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Mono.Debugger.Soft
+{
+ public sealed class TypeLoadEventRequest : EventRequest {
+ string[] sourceFiles;
+ string[] typeNames;
+
+ internal TypeLoadEventRequest (VirtualMachine vm) : base (vm, EventType.TypeLoad) {
+ }
+
+ public string[] SourceFileFilter {
+ get {
+ return sourceFiles;
+ }
+ set {
+ CheckDisabled ();
+ sourceFiles = value;
+ }
+ }
+
+ public string[] TypeNameFilter {
+ get {
+ return typeNames;
+ }
+ set {
+ CheckDisabled ();
+ typeNames = value;
+ }
+ }
+
+ public override void Enable () {
+ var mods = new List <Modifier> ();
+ if (SourceFileFilter != null && SourceFileFilter.Length != 0)
+ mods.Add (new SourceFileModifier () { SourceFiles = SourceFileFilter });
+ if (TypeNameFilter != null && TypeNameFilter.Length != 0)
+ mods.Add (new TypeNameModifier () { TypeNames = TypeNameFilter });
+ SendReq (mods);
+ }
+ }
+} \ No newline at end of file