Example #1
0
 internal DnILCodeBreakpoint(SerializedDnModule module, uint token, uint ilOffset, IBreakpointCondition bpCond)
     : base(bpCond)
 {
     this.module   = module;
     this.token    = token;
     this.ilOffset = ilOffset;
 }
Example #2
0
 internal DnCodeBreakpoint(SerializedDnModule module, uint token, uint offset)
 {
     this.module = module;
     this.token  = token;
     this.offset = offset;
     this.code   = null;
 }
Example #3
0
 internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int incrementedId, int moduleOrder)
 {
     this.ownerAssembly      = ownerAssembly;
     this.module             = new CorModule(module);
     this.incrementedId      = incrementedId;
     this.moduleOrder        = moduleOrder;
     this.serializedDnModule = this.module.SerializedDnModule;
 }
Example #4
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;
        }
Example #5
0
 internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int uniqueId, int uniqueIdProcess, int uniqueIdAppDomain)
 {
     this.ownerAssembly      = ownerAssembly;
     this.module             = new CorModule(module);
     this.uniqueId           = uniqueId;
     this.uniqueIdProcess    = uniqueIdProcess;
     this.uniqueIdAppDomain  = uniqueIdAppDomain;
     this.serializedDnModule = this.module.SerializedDnModule;
 }
Example #6
0
        public bool Remove(SerializedDnModule module, TBP bp)
        {
            List <TBP> list;

            if (!dict.TryGetValue(module, out list))
            {
                return(false);
            }
            return(list.Remove(bp));
        }
Example #7
0
        public void Add(SerializedDnModule module, TBP bp)
        {
            List <TBP> list;

            if (!dict.TryGetValue(module, out list))
            {
                dict.Add(module, list = new List <TBP>());
            }
            list.Add(bp);
        }
Example #8
0
        public TBP[] GetBreakpoints(SerializedDnModule module)
        {
            List <TBP> list;

            if (!dict.TryGetValue(module, out list))
            {
                return(new TBP[0]);
            }
            return(list.ToArray());
        }
Example #9
0
        void SetILBreakpoint(SerializedDnModule serMod, uint token)
        {
            Debug.Assert(token != 0 && breakpoint == null);
            DnBreakpoint bp = null;

            bp = debugger.CreateBreakpoint(serMod, token, 0, ctx2 => {
                debugger.RemoveBreakpoint(bp);
                return(true);
            });
        }
Example #10
0
 public static ModuleName ToModuleName(this DBG.SerializedDnModule serMod)
 {
     return(new ModuleName(serMod.AssemblyFullName, serMod.ModuleName, serMod.IsDynamic, serMod.IsInMemory, serMod.ModuleNameOnly));
 }
 internal DnNativeCodeBreakpoint(SerializedDnModule module, uint token, uint offset, Func <NativeCodeBreakpointConditionContext, bool> cond)
     : base(module, token, offset)
 {
     this.cond = cond ?? defaultCond;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="assembly">Assembly</param>
 /// <param name="module">Module</param>
 public SerializedDnModuleWithAssembly(string assembly, SerializedDnModule module)
 {
     this.asmName = assembly;
     this.module  = module;
 }