1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

new method allowProgramInterruption()

This commit is contained in:
Alain Magloire 2003-01-27 03:30:53 +00:00
parent 8106ea8702
commit 2ce5e5a378

View file

@ -5,17 +5,20 @@
package org.eclipse.cdt.debug.core.cdi; package org.eclipse.cdt.debug.core.cdi;
import org.eclipse.cdt.debug.core.cdi.model.*; import org.eclipse.cdt.debug.core.cdi.model.ICDIBreakpoint;
import org.eclipse.cdt.debug.core.cdi.model.ICDICatchpoint;
import org.eclipse.cdt.debug.core.cdi.model.ICDILocationBreakpoint;
import org.eclipse.cdt.debug.core.cdi.model.ICDIWatchpoint;
/** /**
* *
* The breakpoint manager manages the collection of breakpoints * The breakpoint manager manages the collection of breakpoints
* in the debug session. * in the debug session.
* * Auto update is off by default.
* @since Jul 9, 2002 * @since Jul 9, 2002
*/ */
public interface ICDIBreakpointManager extends ICDISessionObject public interface ICDIBreakpointManager extends ICDIManager {
{
/** /**
* Returns a collection of all breakpoints set for this session. * Returns a collection of all breakpoints set for this session.
* Returns an empty array if no breakpoints are set. * Returns an empty array if no breakpoints are set.
@ -31,7 +34,7 @@ public interface ICDIBreakpointManager extends ICDISessionObject
* @param breakpoint - a breakpoint to be deleted * @param breakpoint - a breakpoint to be deleted
* @throws CDIException on failure. Reasons include: * @throws CDIException on failure. Reasons include:
*/ */
void deleteBreakpoint( ICDIBreakpoint breakpoint ) throws CDIException; void deleteBreakpoint(ICDIBreakpoint breakpoint) throws CDIException;
/** /**
* Deletes the given array of breakpoints. * Deletes the given array of breakpoints.
@ -39,7 +42,7 @@ public interface ICDIBreakpointManager extends ICDISessionObject
* @param breakpoints - the array of breakpoints to be deleted * @param breakpoints - the array of breakpoints to be deleted
* @throws CDIException on failure. Reasons include: * @throws CDIException on failure. Reasons include:
*/ */
void deleteBreakpoints( ICDIBreakpoint[] breakpoints ) throws CDIException; void deleteBreakpoints(ICDIBreakpoint[] breakpoints) throws CDIException;
/** /**
* Deletes all breakpoints. * Deletes all breakpoints.
@ -77,11 +80,13 @@ public interface ICDIBreakpointManager extends ICDISessionObject
* @return a breakpoint * @return a breakpoint
* @throws CDIException on failure. Reasons include: * @throws CDIException on failure. Reasons include:
*/ */
ICDILocationBreakpoint setLocationBreakpoint( int type, ICDILocationBreakpoint setLocationBreakpoint(
ICDILocation location, int type,
ICDICondition condition, ICDILocation location,
String threadId ) throws CDIException; ICDICondition condition,
String threadId)
throws CDIException;
/** /**
* Sets a watchpoint for the given expression. * Sets a watchpoint for the given expression.
* @param type - a combination of TEMPORARY and HARDWARE or 0 * @param type - a combination of TEMPORARY and HARDWARE or 0
@ -91,11 +96,13 @@ public interface ICDIBreakpointManager extends ICDISessionObject
* @return a watchpoint * @return a watchpoint
* @throws CDIException on failure. Reasons include: * @throws CDIException on failure. Reasons include:
*/ */
ICDIWatchpoint setWatchpoint( int type, ICDIWatchpoint setWatchpoint(
int watchType, int type,
String expression, int watchType,
ICDICondition condition ) throws CDIException; String expression,
ICDICondition condition)
throws CDIException;
/** /**
* Sets a catchpoint for the given catch event. * Sets a catchpoint for the given catch event.
* @param type - a combination of TEMPORARY and HARDWARE or 0 * @param type - a combination of TEMPORARY and HARDWARE or 0
@ -104,18 +111,24 @@ public interface ICDIBreakpointManager extends ICDISessionObject
* @return a catchpoint * @return a catchpoint
* @throws CDIException on failure. Reasons include: * @throws CDIException on failure. Reasons include:
*/ */
ICDICatchpoint setCatchpoint( int type, ICDICatchpoint setCatchpoint(
ICDICatchEvent event, int type,
String expression, ICDICatchEvent event,
ICDICondition condition ) throws CDIException; String expression,
ICDICondition condition)
throws CDIException;
/**
* Allow the manager to interrupt the target
* if when setting the breakopoint the program was running.
*/
void allowProgramInterruption(boolean allow);
/** /**
* Return a ICDICondition * Return a ICDICondition
*/ */
ICDICondition createCondition(int ignoreCount, String expression); ICDICondition createCondition(int ignoreCount, String expression);
/** /**
* Returns a ICDILocation * Returns a ICDILocation
*/ */