/// <summary> /// Creates a new ICorDebug instance, initializes it /// and sets the managed callback listener. /// </summary> /// <param name="codebugger">ICorDebug COM object.</param> /// <param name="options">The options.</param> internal CorDebugger(ICorDebug codebugger, CorDebuggerOptions options) { this.codebugger = codebugger; this.options = options; this.codebugger.Initialize(); this.codebugger.SetManagedHandler(new ManagedCallback(options)); }
/// <summary> /// Gets the process from process collection (if it was already /// created) or craetes a new instance of the CorProcess class. /// </summary> /// <param name="coproc">The coproc.</param> /// <param name="options">The options.</param> /// <returns>CorProcess instance.</returns> internal static CorProcess GetOrCreateCorProcess(ICorDebugProcess coproc, CorDebuggerOptions options) { lock (processes) { CorProcess proc; processes.TryGetValue(coproc, out proc); if (proc == null) { proc = new CorProcess(coproc, options); processes.Add(coproc, proc); } return(proc); } }
internal CorAppDomain(ICorDebugAppDomain codomain, CorDebuggerOptions options) : base(codomain, options) { this.codomain = codomain; }
internal CorCode(ICorDebugCode cocode, CorDebuggerOptions options) : base(cocode, options) { this.cocode = cocode; }
internal CorFrame(ICorDebugFrame coframe, CorDebuggerOptions options) : base(coframe, options) { this.coframe = coframe; }
/// <summary> /// Creates new instance of the CorModule class. /// </summary> /// <param name="comodule">ICorDebugModule instance</param> internal CorModule(ICorDebugModule comodule, CorDebuggerOptions options) : base(comodule, options) { this.comodule = comodule; }
internal ManagedCallback(CorDebuggerOptions options) { this.p_options = options; }
/// <summary> /// Creates a new ICorDebugProcess wrapper. /// </summary> /// <param name="coprocess">COM process object</param> /// <param name="options">The options.</param> private CorProcess(ICorDebugProcess coprocess, CorDebuggerOptions options) : base(coprocess, options) { }
internal CorFunction(ICorDebugFunction cofunc, CorDebuggerOptions options) : base(cofunc, options) { this.cofunc = cofunc; }
/// <summary> /// Initializes an instance of the Wrapper class. /// </summary> /// <param name="value">COM object to wrap</param> protected WrapperBase(Object value, CorDebuggerOptions options) { Debug.Assert(value != null); this.coobject = value; this.options = options; }
/// <summary> /// Initializes new instance of the thread object. /// </summary> /// <param name="cothread">COM thread representation.</param> /// <param name="options">The options.</param> internal CorThread(ICorDebugThread cothread, CorDebuggerOptions options) : base(cothread, options) { this.cothread = cothread; }
/// <summary> /// Initializes a new instance of the <see cref="CorFunctionBreakpoint"/> class. /// </summary> /// <param name="cobreakpoint">The cobreakpoint.</param> internal CorFunctionBreakpoint(ICorDebugFunctionBreakpoint cobreakpoint, CorDebuggerOptions options) : base(cobreakpoint, options) { this.p_cobreakpoint = cobreakpoint; }
internal CorBreakpoint(ICorDebugBreakpoint cobreakpoint, CorDebuggerOptions options) : base(cobreakpoint, options) { this.cobreakpoint = cobreakpoint; }