diff options
author | Zoltan Varga <vargaz@gmail.com> | 2011-10-25 23:39:35 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2011-10-25 23:39:35 +0400 |
commit | e7127cbcf3aebc3638f1ed5215480b4ce65eee18 (patch) | |
tree | 8915a37365c58fc0b7a1e5a948523d6699edfff1 /main/contrib | |
parent | e76bbc3a5e4afec83bd58cb23e8ee6431affe2dd (diff) |
Add missing sdb file
Diffstat (limited to 'main/contrib')
-rw-r--r-- | main/contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeLoadEventRequest.cs | 43 |
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 |