public MDANotificationDebugCallbackEventArgs(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
     : base(pController)
 {
     Controller = pController;
     Thread     = pThread;
     MDA        = pMDA;
 }
        public void MDANotification(ICorDebugController c, ICorDebugThread t, ICorDebugMDA mda)
        {
            ManagedCallback managedCallback = GetProcessCallbackInterface(c);

            if (managedCallback != null)
            {
                managedCallback.MDANotification(c, t, mda);
            }
        }
 void ICorDebugManagedCallback2.MDANotification(
     ICorDebugController pController,
     ICorDebugThread thread,
     ICorDebugMDA pMDA)
 {
     if (DebugOutput)
     {
         Console.WriteLine("info: MDANotification2");
     }
     pController.Continue(0);
 }
Example #4
0
        public void MDANotification(ICorDebugController c, ICorDebugThread t, ICorDebugMDA mda)
        {
            if (c.Is <ICorDebugAppDomain>())
            {
                EnterCallback(PausedReason.Other, "MDANotification", c.CastTo <ICorDebugAppDomain>());
            }
            else if (c.Is <ICorDebugProcess>())
            {
                EnterCallback(PausedReason.Other, "MDANotification", c.CastTo <ICorDebugProcess>());
            }
            else
            {
                throw new System.Exception("Unknown callback argument");
            }

            ExitCallback_Continue();
        }
Example #5
0
        /// <exception cref="Exception">Unknown callback argument</exception>
        public void MDANotification(ICorDebugController c, ICorDebugThread t, ICorDebugMDA mda)
        {
            if (c is ICorDebugAppDomain)
            {
                EnterCallback(PausedReason.Other, "MDANotification", (ICorDebugAppDomain)c);
            }
            else if (c is ICorDebugProcess)
            {
                EnterCallback(PausedReason.Other, "MDANotification", (ICorDebugProcess)c);
            }
            else
            {
                throw new System.Exception("Unknown callback argument");
            }

            ExitCallback();
        }
Example #6
0
 void ICorDebugManagedCallback2.MDANotification(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
 {
     // TODO nothing for now
 }
Example #7
0
            public void MDANotification(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
            {
                try
                {
                    _EnterCallback();

                    lock (dbgproc)
                    {
                        string desc;
                        {
                            uint len = 0;
                            pMDA.GetDescription(len, out len, IntPtr.Zero);
                            IntPtr pdesc = Marshal.AllocHGlobal((int)len * 2);
                            pMDA.GetDescription(len, out len, pdesc);
                            desc = Marshal.PtrToStringUni(pdesc, (int)len);
                            if (desc.EndsWith("\0"))
                            {
                                desc = desc.Substring(0, desc.Length - 1);
                            }
                            Marshal.FreeHGlobal(pdesc);
                        }
                        dbgproc.dout.WriteLine("MDA notification: {0}", desc);
                    }

                    _CallbackEvent("MDANotification", true);
                }
                catch (Exception e)
                {
                    _CallbackException(e);
                }
            }
 public virtual void MDANotification(ICorDebugController controller, ICorDebugThread thread, ICorDebugMDA mda)
 {
     this.DefaultHandler(controller);
 }
Example #9
0
 public void MDANotification(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
 {
     pController.Continue(0);
 }
Example #10
0
		public MDANotificationDebugCallbackEventArgs(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
			: base(pController) {
			this.Controller = pController;
			this.Thread = pThread;
			this.MDA = pMDA;
		}
		public void MDANotification(ICorDebugController c, ICorDebugThread t, ICorDebugMDA mda)
		{
			ManagedCallback managedCallback = GetProcessCallbackInterface("MDANotification", c);
			if (managedCallback != null) {
				managedCallback.MDANotification(c, t, mda);
			}
		}
Example #12
0
 public void MDANotification([In, MarshalAs(UnmanagedType.Interface)] ICorDebugController pController, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugThread pThread, [In, MarshalAs(UnmanagedType.Interface)] ICorDebugMDA pMDA)
 {
     throw new NotImplementedException();
 }
 public void MDANotification(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
 {
     Console.WriteLine("MDANotification");
     pController.Continue(0);
 }
 public void MDANotification(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
 {
     HandleEvent(pController);
 }
		/// <exception cref="Exception">Unknown callback argument</exception>
		public void MDANotification(ICorDebugController c, ICorDebugThread t, ICorDebugMDA mda)
		{
			if (c is ICorDebugAppDomain) {
				EnterCallback("MDANotification", (ICorDebugAppDomain)c);
			} else if (c is ICorDebugProcess){
				EnterCallback("MDANotification", (ICorDebugProcess)c);
			} else {
				throw new System.Exception("Unknown callback argument");
			}
			
			ExitCallback();
		}
 public void MDANotification(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
 {
     HandleEvent(pController);
 }
Example #17
0
		public void MDANotification(ICorDebugController c, ICorDebugThread t, ICorDebugMDA mda)
		{
			if (c.Is<ICorDebugAppDomain>()) {
				EnterCallback(PausedReason.Other, "MDANotification", c.CastTo<ICorDebugAppDomain>());
			} else if (c.Is<ICorDebugProcess>()){
				EnterCallback(PausedReason.Other, "MDANotification", c.CastTo<ICorDebugProcess>());
			} else {
				throw new System.Exception("Unknown callback argument");
			}
			
			ExitCallback_Continue();
		}
Example #18
0
 public virtual void MDANotification(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
 {
     pController.Continue(0);
 }
Example #19
0
 public void MDANotification(ICorDebugController pController, ICorDebugThread pThread, ICorDebugMDA pMDA)
 {
     throw new NotImplementedException();
 }
Example #20
0
 internal CorMDA(ICorDebugMDA mda)
     : base(mda)
 {
     m_mda = mda;
 }
Example #21
0
        void ICorDebugManagedCallback2.MDANotification(ICorDebugController pController,
                                                       ICorDebugThread thread,
                                                       ICorDebugMDA pMDA)
        {
            CorMDA c = new CorMDA(pMDA);
            string szName = c.Name;
            CorDebugMDAFlags f = c.Flags;
            CorProcess p = GetProcessFromController(pController);


            HandleEvent(ManagedCallbackType.OnMDANotification,
                                      new CorMDAEventArgs(c,
                                                           thread == null ? null : new CorThread(thread),
                                                           p, ManagedCallbackType.OnMDANotification));
        }
Example #22
0
 internal CorMDA(ICorDebugMDA mda)
     : base(mda)
 {
     m_mda = mda;
 }