Exemple #1
0
 void realHost_BreakpointUpdate(ITarget sender, BreakpointUpdateEventArgs args)
 {
     if (mForm != null && mForm.IsHandleCreated)
     {
         mForm.BeginInvoke(new MethodInvoker(delegate()
         {
             if (this.BreakpointUpdate != null)
             {
                 this.BreakpointUpdate(this, args);
             }
         }));
     }
 }
Exemple #2
0
        void OnBreakpointUpdate(int bkptid, BreakpointUpdateEventState state)
        {
            BreakpointUpdateEventArgs args = new BreakpointUpdateEventArgs(bkptid, state);

            if (mForm != null && mForm.IsHandleCreated)
            {
                mForm.BeginInvoke(new MethodInvoker(delegate()
                {
                    if (this.BreakpointUpdate != null)
                    {
                        this.BreakpointUpdate(this, args);
                    }
                }));
            }
        }
Exemple #3
0
        /// <summary>
        /// Triggered when the target has accepted or rejected a breakpoint.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void Target_BreakpointUpdate(Target sender, BreakpointUpdateEventArgs args)
        {
            BreakpointDetails bkpt = FindBreakpoint(args.ID);

            if (bkpt != null)
            {
                if (args.State == BreakpointUpdateEventState.Added)
                {
                    // Force it to be displayed as enabled, 'cos the debugger is gonna break on it anyway!
                    bkpt.Enabled     = true;
                    bkpt.TargetState = BreakpointState.Accepted;
                }

                else if (args.State == BreakpointUpdateEventState.Invalid)
                {
                    bkpt.TargetState = BreakpointState.Invalid;
                }

                else if (args.State == BreakpointUpdateEventState.Removed)
                {
                    if (bkpt.TargetState == BreakpointState.PendingRemove)
                    {
                        bkpt.TargetState = BreakpointState.Removed;
                    }
                    else if (bkpt.TargetState == BreakpointState.PendingDisable)
                    {
                        bkpt.TargetState = BreakpointState.NotSent;
                    }
                }

                if (bkpt.TargetState == BreakpointState.Removed)
                {
                    mBreakpoints.Remove(bkpt);
                }

                OnBreakpointChanged(bkpt, bkpt.TargetState != BreakpointState.Removed);
            }
        }
Exemple #4
0
		/// <summary>
		/// Triggered when the target has accepted or rejected a breakpoint.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="args"></param>
		void Target_BreakpointUpdate(Target sender, BreakpointUpdateEventArgs args)
		{
			BreakpointDetails bkpt = FindBreakpoint(args.ID);
			if(bkpt != null)
			{
				if (args.State == BreakpointUpdateEventState.Added)
				{
					// Force it to be displayed as enabled, 'cos the debugger is gonna break on it anyway!
					bkpt.Enabled = true;
					bkpt.TargetState = BreakpointState.Accepted;
				}

				else if (args.State == BreakpointUpdateEventState.Invalid)
					bkpt.TargetState = BreakpointState.Invalid;

				else if (args.State == BreakpointUpdateEventState.Removed)
				{
					if (bkpt.TargetState == BreakpointState.PendingRemove)
						bkpt.TargetState = BreakpointState.Removed;
					else if (bkpt.TargetState == BreakpointState.PendingDisable)
						bkpt.TargetState = BreakpointState.NotSent;
				}

				if(bkpt.TargetState == BreakpointState.Removed)
					mBreakpoints.Remove(bkpt);

				OnBreakpointChanged(bkpt, bkpt.TargetState != BreakpointState.Removed);
			}
		}
Exemple #5
0
		void realHost_BreakpointUpdate(ITarget sender, BreakpointUpdateEventArgs args)
		{
			if (mForm != null && mForm.IsHandleCreated)
				mForm.BeginInvoke(new MethodInvoker(delegate()
				{
					if (this.BreakpointUpdate != null)
						this.BreakpointUpdate(this, args);
				}));
		}
Exemple #6
0
		void OnBreakpointUpdate(int bkptid, BreakpointUpdateEventState state)
		{
			BreakpointUpdateEventArgs args = new BreakpointUpdateEventArgs(bkptid, state);
			if (mForm != null && mForm.IsHandleCreated)
				mForm.BeginInvoke(new MethodInvoker(delegate()
				{
					if (this.BreakpointUpdate != null)
						this.BreakpointUpdate(this, args);
				}));
		}