Example #1
0
 public DebuggerPauseEventArgs(RuntimeAppDomain domain, RuntimeThread thread, PauseReason reason)
     : base(domain, false)
 {
     AppDomain = domain;
     Thread    = thread;
     Reason    = reason;
 }
Example #2
0
 public StepperEventArgs(RuntimeAppDomain domain, RuntimeThread thread, SourceStepper stepper)
     : base(domain, false)
 {
     Domain  = domain;
     Thread  = thread;
     Stepper = stepper;
 }
        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);
        }
        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;
 }
Example #7
0
 public DebuggeeExceptionEventArgs(RuntimeAppDomain domain, RuntimeThread thread, uint offset, CorDebugExceptionCallbackType exceptionType)
     : base(domain, thread, PauseReason.Exception)
 {
     Offset        = offset;
     ExceptionType = exceptionType;
 }
Example #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;
 }
Example #10
0
 internal RuntimeAssembly(RuntimeAppDomain domain, ICorDebugAssembly comAssembly)
 {
     _domain      = domain;
     _comAssembly = comAssembly;
 }
Example #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);
        }