Exemplo n.º 1
0
 public DebuggerPauseEventArgs(RuntimeAppDomain domain, RuntimeThread thread, PauseReason reason)
     : base(domain, false)
 {
     AppDomain = domain;
     Thread    = thread;
     Reason    = reason;
 }
Exemplo n.º 2
0
 public StepperEventArgs(RuntimeAppDomain domain, RuntimeThread thread, SourceStepper stepper)
     : base(domain, false)
 {
     Domain  = domain;
     Thread  = thread;
     Stepper = stepper;
 }
Exemplo n.º 3
0
        public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
        {
            pAppDomain.Attach();
            var process = GetProcessWrapper(pProcess);
            var domain  = new RuntimeAppDomain(process, pAppDomain);

            Log("Created application domain {0}.", domain.Name);
            var eventArgs = new GenericDebuggerEventArgs <RuntimeAppDomain>(domain, process);

            process.DispatchAppDomainLoad(eventArgs);

            FinalizeEvent(eventArgs);
        }
Exemplo n.º 4
0
        public void UnloadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
        {
            RuntimeAppDomain runtimeDomain = GetProcessWrapper(pAppDomain).GetAppDomain(pAppDomain);

            ICorDebugAssembly comAssembly;

            pModule.GetAssembly(out comAssembly);
            RuntimeAssembly runtimeAssembly = runtimeDomain.GetAssembly(comAssembly);

            var runtimeModule = runtimeAssembly.GetModule(pModule);

            Log("Unloaded module.");

            var eventArgs = new GenericDebuggerEventArgs <RuntimeModule>(runtimeModule, runtimeDomain);

            runtimeAssembly.DispatchModuleUnloadEvent(eventArgs);
            FinalizeEvent(eventArgs);
        }
 internal RuntimeAssembly(RuntimeAppDomain domain, ICorDebugAssembly comAssembly)
 {
     _domain = domain;
     _comAssembly = comAssembly;
 }
 public StepperEventArgs(RuntimeAppDomain domain, RuntimeThread thread, SourceStepper stepper)
     : base(domain, false)
 {
     Domain = domain;
     Thread = thread;
     Stepper = stepper;
 }
Exemplo n.º 7
0
 public DebuggeeExceptionEventArgs(RuntimeAppDomain domain, RuntimeThread thread, uint offset, CorDebugExceptionCallbackType exceptionType)
     : base(domain, thread, PauseReason.Exception)
 {
     Offset        = offset;
     ExceptionType = exceptionType;
 }
Exemplo n.º 8
0
 public BreakpointEventArgs(RuntimeAppDomain domain, RuntimeThread thread, Breakpoint breakpoint)
     : base(domain, thread, PauseReason.Break)
 {
     Breakpoint = breakpoint;
 }
 internal RuntimeThread(RuntimeAppDomain domain, ICorDebugThread comThread)
 {
     _domain = domain;
     _comThread = comThread;
 }
Exemplo n.º 10
0
 internal RuntimeAssembly(RuntimeAppDomain domain, ICorDebugAssembly comAssembly)
 {
     _domain      = domain;
     _comAssembly = comAssembly;
 }
Exemplo n.º 11
0
 internal RuntimeThread(RuntimeAppDomain domain, ICorDebugThread comThread)
 {
     _domain    = domain;
     _comThread = comThread;
 }
        public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
        {
            pAppDomain.Attach();
            var process = GetProcessWrapper(pProcess);
            var domain = new RuntimeAppDomain(process, pAppDomain);
            Log("Created application domain {0}.", domain.Name);
            var eventArgs = new GenericDebuggerEventArgs<RuntimeAppDomain>(domain, process);
            process.DispatchAppDomainLoad(eventArgs);

            FinalizeEvent(eventArgs);
        }