Exemple #1
0
 internal MDbgAppDomain(MDbgProcess process, CorAppDomain appDomain, int number)
 {
     Debug.Assert(process != null);
     Debug.Assert(appDomain != null);
     m_process = process;
     m_appDomain = appDomain;
     m_number = number;
 }
 //
 // IEnumerator interface
 //
 public bool MoveNext()
 {
     ICorDebugAppDomain[] a = new ICorDebugAppDomain [1];
     uint c = 0;
     int r = m_enum.Next ((uint) a.Length, a, out c);
     if (r==0 && c==1) // S_OK && we got 1 new element
         m_ad = new CorAppDomain (a[0]);
     else
         m_ad = null;
     return m_ad != null;
 }
Exemple #3
0
 public CorStepCompleteEventArgs(CorAppDomain appDomain, CorThread thread,
                                  CorStepper stepper, CorDebugStepReason stepReason)
     : base(appDomain, thread)
 {
     m_stepper = stepper;
     m_stepReason = stepReason;
 }
Exemple #4
0
 public CorBreakpointEventArgs(CorAppDomain appDomain,
                                CorThread thread,
                                CorBreakpoint managedBreakpoint)
     : base(appDomain, thread)
 {
     m_break = managedBreakpoint;
 }
Exemple #5
0
 public CorThreadEventArgs(CorAppDomain appDomain, CorThread thread)
     : base(appDomain != null ? appDomain : thread.AppDomain)
 {
     Thread = thread;
 }
Exemple #6
0
 public CorAppDomainBaseEventArgs(CorAppDomain ad)
     : base(ad)
 {
 }
Exemple #7
0
 public CorAppDomainEventArgs(CorProcess process, CorAppDomain ad)
     : base(process)
 {
     m_ad = ad;
 }
Exemple #8
0
 public CorException2EventArgs(CorAppDomain appDomain,
                               CorThread thread,
                               CorFrame frame,
                               int offset,
                               CorDebugExceptionCallbackType eventType,
                               int flags,
                               ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_frame = frame;
     m_offset = offset;
     m_eventType = eventType;
     m_flags = flags;
 }
Exemple #9
0
 public CorUpdateModuleSymbolsEventArgs(CorAppDomain appDomain,
                                         CorModule managedModule,
                                         IStream stream)
     : base(appDomain, managedModule)
 {
     m_stream = stream;
 }
Exemple #10
0
 public CorLogSwitchEventArgs(CorAppDomain appDomain, CorThread thread,
                               int level, int reason, string logSwitchName, string parentName,
                               ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_level = level;
     m_reason = reason;
     m_logSwitchName = logSwitchName;
     m_parentName = parentName;
 }
Exemple #11
0
 public CorLogMessageEventArgs(CorAppDomain appDomain, CorThread thread,
                                int level, string logSwitchName, string message,
                                ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_level = level;
     m_logSwitchName = logSwitchName;
     m_message = message;
 }
Exemple #12
0
 public CorAssemblyEventArgs(CorAppDomain appDomain,
                              CorAssembly assembly, ManagedCallbackType callbackType)
     : base(appDomain, callbackType)
 {
     m_assembly = assembly;
 }
Exemple #13
0
 public CorAssemblyEventArgs(CorAppDomain appDomain,
                              CorAssembly assembly)
     : base(appDomain)
 {
     m_assembly = assembly;
 }
Exemple #14
0
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass,
     ManagedCallbackType callbackType)
     : base(appDomain, callbackType)
 {
     m_class = managedClass;
 }
Exemple #15
0
 public CorClassEventArgs(CorAppDomain appDomain, CorClass managedClass)
     : base(appDomain)
 {
     m_class = managedClass;
 }
Exemple #16
0
 public CorFunctionRemapCompleteEventArgs(CorAppDomain appDomain,
                                    CorThread thread,
                                    CorFunction managedFunction,
                                    ManagedCallbackType callbackType
                                    )
     : base(appDomain, thread, callbackType)
 {
     m_managedFunction = managedFunction;
 }
Exemple #17
0
 public CorExceptionUnwind2EventArgs(CorAppDomain appDomain, CorThread thread,
                                     CorDebugExceptionUnwindCallbackType eventType,
                                     int flags,
                                     ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_eventType = eventType;
     m_flags = flags;
 }
Exemple #18
0
 public CorUpdateModuleSymbolsEventArgs(CorAppDomain appDomain,
                                         CorModule managedModule,
                                         IStream stream,
                                         ManagedCallbackType callbackType)
     : base(appDomain, managedModule, callbackType)
 {
     m_stream = stream;
 }
Exemple #19
0
 // Get process from controller 
 static private CorProcess GetProcessFromController(ICorDebugController pController)
 {
     CorProcess p;
     ICorDebugProcess p2 = pController as ICorDebugProcess;
     if (p2 != null)
     {
         p = CorProcess.GetCorProcess(p2);
     }
     else
     {
         ICorDebugAppDomain a2 = (ICorDebugAppDomain)pController;
         p = new CorAppDomain(a2).Process;
     }
     return p;
 }
Exemple #20
0
 public CorEditAndContinueRemapEventArgs(CorAppDomain appDomain,
                                 CorThread thread,
                                 CorFunction managedFunction,
                                 int accurate,
                                 ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_managedFunction = managedFunction;
     m_accurate = accurate;
 }
Exemple #21
0
 public CorAppDomainEventArgs(CorProcess process, CorAppDomain ad,
                               ManagedCallbackType callbackType)
     : base(process, callbackType)
 {
     m_ad = ad;
 }
Exemple #22
0
 public CorBreakpointSetErrorEventArgs(CorAppDomain appDomain,
                                 CorThread thread,
                                 CorBreakpoint breakpoint,
                                 int errorCode)
     : base(appDomain, thread)
 {
     m_breakpoint = breakpoint;
     m_errorCode = errorCode;
 }
Exemple #23
0
 public CorAppDomainBaseEventArgs(CorAppDomain ad, ManagedCallbackType callbackType)
     : base(ad, callbackType)
 {
 }
Exemple #24
0
 public CorBreakpointSetErrorEventArgs(CorAppDomain appDomain,
                                 CorThread thread,
                                 CorBreakpoint breakpoint,
                                 int errorCode,
                                 ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_breakpoint = breakpoint;
     m_errorCode = errorCode;
 }
Exemple #25
0
 public CorThreadEventArgs(CorAppDomain appDomain, CorThread thread,
     ManagedCallbackType callbackType)
     : base(appDomain != null ? appDomain : thread.AppDomain, callbackType)
 {
     Thread = thread;
 }
Exemple #26
0
 public CorFunctionRemapOpportunityEventArgs(CorAppDomain appDomain,
                                    CorThread thread,
                                    CorFunction oldFunction,
                                    CorFunction newFunction,
                                    int oldILoffset
                                    )
     : base(appDomain, thread)
 {
     m_oldFunction = oldFunction;
     m_newFunction = newFunction;
     m_oldILoffset = oldILoffset;
 }
Exemple #27
0
 public CorBreakpointEventArgs(CorAppDomain appDomain,
                                CorThread thread,
                                CorBreakpoint managedBreakpoint,
                                ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_break = managedBreakpoint;
 }
Exemple #28
0
 public CorFunctionRemapOpportunityEventArgs(CorAppDomain appDomain,
                                    CorThread thread,
                                    CorFunction oldFunction,
                                    CorFunction newFunction,
                                    int oldILoffset,
                                    ManagedCallbackType callbackType
                                    )
     : base(appDomain, thread, callbackType)
 {
     m_oldFunction = oldFunction;
     m_newFunction = newFunction;
     m_oldILoffset = oldILoffset;
 }
Exemple #29
0
 public CorStepCompleteEventArgs(CorAppDomain appDomain, CorThread thread,
                                  CorStepper stepper, CorDebugStepReason stepReason,
                                  ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_stepper = stepper;
     m_stepReason = stepReason;
 }
Exemple #30
0
 public CorFunctionRemapCompleteEventArgs(CorAppDomain appDomain,
                                    CorThread thread,
                                    CorFunction managedFunction
                                    )
     : base(appDomain, thread)
 {
     m_managedFunction = managedFunction;
 }