Esempio n. 1
0
 internal DnCodeBreakpoint(SerializedDnModule module, uint token, uint offset)
 {
     this.module = module;
     this.token  = token;
     this.offset = offset;
     this.code   = null;
 }
Esempio n. 2
0
 internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset)
 {
     this.Module = module;
     this.Token  = token;
     this.Offset = offset;
     this.code   = null;
 }
Esempio n. 3
0
 internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset)
 {
     Module = module;
     Token  = token;
     Offset = offset;
     code   = null;
 }
Esempio n. 4
0
 internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset)
 {
     Module = module;
     Token  = token;
     Offset = offset;
     code   = null;
     error  = DnCodeBreakpointError.OtherError;
 }
Esempio n. 5
0
        static SerializedDnModule GetModule(CorCode code)
        {
            var  func  = code.Function;
            uint token = func == null ? 0 : func.Token;
            var  mod   = func == null ? null : func.Module;

            return(mod == null ? new SerializedDnModule() : mod.SerializedDnModule);
        }
Esempio n. 6
0
        internal DnCodeBreakpoint(CorCode code, uint offset)
        {
            this.module = GetModule(code);
            var func = code.Function;

            this.token  = func == null ? 0 : func.Token;
            this.offset = offset;
            this.code   = code;
        }
Esempio n. 7
0
        internal DnCodeBreakpoint(CorCode code, uint offset)
        {
            this.Module = GetModule(code);
            var func = code.Function;

            this.Token  = func?.Token ?? 0;
            this.Offset = offset;
            this.code   = code;
        }
Esempio n. 8
0
        internal DnCodeBreakpoint(DnModuleId module, CorCode code, uint offset)
        {
            Module = module;
            var func = code.Function;

            Token     = func?.Token ?? 0;
            Offset    = offset;
            this.code = code;
            error     = DnCodeBreakpointError.OtherError;
        }
Esempio n. 9
0
 public bool Equals(CorCode other) => !ReferenceEquals(other, null) && RawObject == other.RawObject;
Esempio n. 10
0
 public bool Equals(CorCode other)
 {
     return(!ReferenceEquals(other, null) &&
            RawObject == other.RawObject);
 }
Esempio n. 11
0
 static DnModuleId GetModule(CorCode code) =>
 code.Function?.Module?.DnModuleId ?? new DnModuleId();
Esempio n. 12
0
 internal DnNativeCodeBreakpoint(CorCode code, uint offset, Func <NativeCodeBreakpointConditionContext, bool> cond)
     : base(code, offset)
 {
     Condition = cond ?? defaultCond;
 }