Пример #1
0
 internal DnCodeBreakpoint(SerializedDnModule module, uint token, uint offset)
 {
     this.module = module;
     this.token  = token;
     this.offset = offset;
     this.code   = null;
 }
Пример #2
0
 internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset)
 {
     this.Module = module;
     this.Token  = token;
     this.Offset = offset;
     this.code   = null;
 }
Пример #3
0
 internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset)
 {
     Module = module;
     Token  = token;
     Offset = offset;
     code   = null;
 }
Пример #4
0
 internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset)
 {
     Module = module;
     Token  = token;
     Offset = offset;
     code   = null;
     error  = DnCodeBreakpointError.OtherError;
 }
Пример #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);
        }
Пример #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;
        }
Пример #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;
        }
Пример #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;
        }
Пример #9
0
 public bool Equals(CorCode other) => !ReferenceEquals(other, null) && RawObject == other.RawObject;
Пример #10
0
 public bool Equals(CorCode other)
 {
     return(!ReferenceEquals(other, null) &&
            RawObject == other.RawObject);
 }
Пример #11
0
 static DnModuleId GetModule(CorCode code) =>
 code.Function?.Module?.DnModuleId ?? new DnModuleId();
Пример #12
0
 internal DnNativeCodeBreakpoint(CorCode code, uint offset, Func <NativeCodeBreakpointConditionContext, bool> cond)
     : base(code, offset)
 {
     Condition = cond ?? defaultCond;
 }