1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-08 08:45:44 +02:00

Removing of ICDISteppingEvent

This commit is contained in:
Alain Magloire 2002-08-14 04:02:19 +00:00
parent 34c403336b
commit 1a362a1398
9 changed files with 53 additions and 66 deletions

View file

@ -50,4 +50,9 @@ public interface ICDIExpressionManager extends ICDISessionObject
* @throws CDIException on failure. Reasons include: * @throws CDIException on failure. Reasons include:
*/ */
ICDIExpression[] getExpressions() throws CDIException; ICDIExpression[] getExpressions() throws CDIException;
/**
* Return a ICDICondition
*/
ICDICondition createCondition(int ignoreCount, String expression);
} }

View file

@ -38,4 +38,9 @@ public interface ICDISourceManager extends ICDISessionObject
* @throws CDIException on failure. Reasons include: * @throws CDIException on failure. Reasons include:
*/ */
void reset() throws CDIException; void reset() throws CDIException;
/**
* Returns a ICDILocation
*/
ICDILocation createLocation(String file, String function, int line);
} }

View file

@ -16,6 +16,17 @@ package org.eclipse.cdt.debug.core.cdi.event;
* *
* @since Jul 10, 2002 * @since Jul 10, 2002
*/ */
public interface ICDIResumedEvent extends ICDIEvent public interface ICDIResumedEvent extends ICDIEvent {
{ final static public int STEP_OVER = 0;
final static public int STEP_INTO = 1;
final static public int STEP_OVER_INSTRUCTION = 2;
final static public int STEP_INTO_INSTRUCTION = 3;
final static public int STEP_RETURN = 4;
/**
* Returns the stepping type.
*
* @return the stepping type
*/
int getType();
} }

View file

@ -1,29 +0,0 @@
/*
*(c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.core.cdi.event;
/**
*
* Can be originated by an ICDIThread object when the thread is
* being resumed by a request to step.
*
* @since Jul 10, 2002
*/
public interface ICDISteppingEvent extends ICDIEvent
{
final static public int STEP_OVER = 0;
final static public int STEP_INTO = 1;
final static public int STEP_OVER_INSTRUCTION = 2;
final static public int STEP_INTO_INSTRUCTION = 3;
final static public int STEP_RETURN = 4;
/**
* Returns the stepping type.
*
* @return the stepping type
*/
int getType();
}

View file

@ -36,11 +36,4 @@ public interface ICDISuspendedEvent extends ICDIEvent
*/ */
ICDISessionObject getReason(); ICDISessionObject getReason();
/**
* Returns the current stack frame.
*
* @return the current stack frame
*/
ICDIStackFrame getStackFrame();
} }

View file

@ -174,12 +174,13 @@ public interface ICDITarget extends ICDIObject
*/ */
void suspend() throws CDIException; void suspend() throws CDIException;
/** /*
* Returns whether this target is is currently stepping. * Returns whether this target is is currently stepping.
* *
* @return whether this target is currently stepping * @return whether this target is currently stepping
*/
boolean isStepping(); boolean isStepping();
*/
/** /**
* Steps over the current source line. Can only be called * Steps over the current source line. Can only be called

View file

@ -52,12 +52,13 @@ public interface ICDIThread extends ICDIObject
*/ */
void suspend() throws CDIException; void suspend() throws CDIException;
/** /*
* Returns whether this thread is is currently stepping. * Returns whether this thread is is currently stepping.
* *
* @return whether this thread is currently stepping * @return whether this thread is currently stepping
*/ *
boolean isStepping(); boolean isStepping();
*/
/** /**
* Steps over the current source line. Can only be called * Steps over the current source line. Can only be called

View file

@ -30,7 +30,7 @@ import org.eclipse.cdt.debug.core.cdi.event.ICDIExitedEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDILoadedEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDILoadedEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDIRestartedEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDIRestartedEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDIResumedEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDIResumedEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDISteppingEvent; //import org.eclipse.cdt.debug.core.cdi.event.ICDISteppingEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDISuspendedEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDISuspendedEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDIDestroyedEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDIDestroyedEvent;
import org.eclipse.cdt.debug.core.cdi.model.ICDIObject; import org.eclipse.cdt.debug.core.cdi.model.ICDIObject;
@ -692,13 +692,13 @@ public class CDebugTarget extends CDebugElement
handleRestartedEvent( (ICDIRestartedEvent)event ); handleRestartedEvent( (ICDIRestartedEvent)event );
} }
} }
else if ( event instanceof ICDISteppingEvent ) //else if ( event instanceof ICDISteppingEvent )
{ //{
if ( source instanceof ICDITarget ) // if ( source instanceof ICDITarget )
{ // {
handleSteppingEvent( (ICDISteppingEvent)event ); // handleSteppingEvent( (ICDISteppingEvent)event );
} // }
} //}
} }
} }
@ -1018,13 +1018,13 @@ public class CDebugTarget extends CDebugElement
private void handleRestartedEvent( ICDIRestartedEvent event ) private void handleRestartedEvent( ICDIRestartedEvent event )
{ {
} }
/*
private void handleSteppingEvent( ICDISteppingEvent event ) private void handleSteppingEvent( ICDISteppingEvent event )
{ {
setCurrentStateId( IState.STEPPING ); setCurrentStateId( IState.STEPPING );
setCurrentStateInfo( null ); setCurrentStateInfo( null );
} }
*/
private void handleThreadCreatedEvent( ICDICreatedEvent event ) private void handleThreadCreatedEvent( ICDICreatedEvent event )
{ {
ICDIThread cdiThread = (ICDIThread)event.getSource(); ICDIThread cdiThread = (ICDIThread)event.getSource();

View file

@ -25,7 +25,7 @@ import org.eclipse.cdt.debug.core.cdi.event.ICDIDisconnectedEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDIEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDIEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDIEventListener; import org.eclipse.cdt.debug.core.cdi.event.ICDIEventListener;
import org.eclipse.cdt.debug.core.cdi.event.ICDIResumedEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDIResumedEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDISteppingEvent; //import org.eclipse.cdt.debug.core.cdi.event.ICDISteppingEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDISuspendedEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDISuspendedEvent;
import org.eclipse.cdt.debug.core.cdi.event.ICDIDestroyedEvent; import org.eclipse.cdt.debug.core.cdi.event.ICDIDestroyedEvent;
import org.eclipse.cdt.debug.core.cdi.model.ICDIObject; import org.eclipse.cdt.debug.core.cdi.model.ICDIObject;
@ -413,13 +413,13 @@ public class CThread extends CDebugElement
handleChangedEvent( (ICDIChangedEvent)event ); handleChangedEvent( (ICDIChangedEvent)event );
} }
} }
else if ( event instanceof ICDISteppingEvent ) //else if ( event instanceof ICDISteppingEvent )
{ //{
if ( source instanceof ICDIThread ) // if ( source instanceof ICDIThread )
{ // {
handleSteppingEvent( (ICDISteppingEvent)event ); // handleSteppingEvent( (ICDISteppingEvent)event );
} // }
} //}
} }
} }
@ -882,11 +882,11 @@ public class CThread extends CDebugElement
{ {
} }
private void handleSteppingEvent( ICDISteppingEvent event ) //private void handleSteppingEvent( ICDISteppingEvent event )
{ //{
setCurrentStateId( IState.STEPPING ); // setCurrentStateId( IState.STEPPING );
setCurrentStateInfo( null ); // setCurrentStateInfo( null );
} //}
/** /**
* Cleans up the internal state of this thread. * Cleans up the internal state of this thread.