blob: 31e10a85d904e3e68c70aca5df8b408106dd4a0e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 The Regents of the University of California.
* This material was produced under U.S. Government contract W-7405-ENG-36
* for Los Alamos National Laboratory, which is operated by the University
* of California for the U.S. Department of Energy. The U.S. Government has
* rights to use, reproduce, and distribute this software. NEITHER THE
* GOVERNMENT NOR THE UNIVERSITY MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR
* ASSUMES ANY LIABILITY FOR THE USE OF THIS SOFTWARE. If software is modified
* to produce derivative works, such modified software should be clearly marked,
* so as not to confuse it with the version available from LANL.
*
* Additionally, this program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* LA-CC 04-115
*******************************************************************************/
package org.eclipse.ptp.debug.core.pdi;
import org.eclipse.ptp.debug.core.TaskSet;
import org.eclipse.ptp.debug.core.pdi.model.IPDIAddressBreakpoint;
import org.eclipse.ptp.debug.core.pdi.model.IPDIExceptionpoint;
import org.eclipse.ptp.debug.core.pdi.model.IPDIFunctionBreakpoint;
import org.eclipse.ptp.debug.core.pdi.model.IPDILineBreakpoint;
import org.eclipse.ptp.debug.core.pdi.model.IPDIWatchpoint;
/**
* Represents breakpoint action management. Each methods send to debugger and
* replied by event.
*
* @author clement
*
*/
public interface IPDIBreakpointManagement {
/**
* Requests to set a line breakpoint of specify process
*
* @param tasks
* target process
* @param bpt
* line breakpoint to be set
* @throws PDIException
* on failure
* @since 4.0
*/
void setLineBreakpoint(TaskSet tasks, IPDILineBreakpoint bpt) throws PDIException;
/**
* Requests to set a function breakpoint of specify process
*
* @param tasks
* target process
* @param bpt
* function breakpoint to be set
* @throws PDIException
* on failure
* @since 4.0
*/
void setFunctionBreakpoint(TaskSet tasks, IPDIFunctionBreakpoint bpt) throws PDIException;
/**
* Requests to set a address breakpoint of specify process
*
* @param tasks
* target process
* @param bpt
* address breakpoint to be set
* @throws PDIException
* on failure
* @since 4.0
*/
void setAddressBreakpoint(TaskSet tasks, IPDIAddressBreakpoint bpt) throws PDIException;
/**
* Requests to set a watchpoint of specify process
*
* @param tasks
* target process
* @param bpt
* watchpoint to be set
* @throws PDIException
* on failure
* @since 4.0
*/
void setWatchpoint(TaskSet tasks, IPDIWatchpoint bpt) throws PDIException;
/**
* Requests to set an exceptionpoint of specify process
*
* @param tasks
* target process
* @param bpt
* an exceptionpoint to be set
* @throws PDIException
* failure
* @since 4.0
*/
void setExceptionpoint(TaskSet tasks, IPDIExceptionpoint bpt) throws PDIException;
/**
* Requests to delete a given breakpoint of specify process
*
* @param tasks
* target process
* @param bpid
* breakpoint id to be deleted
* @throws PDIException
* on failure
* @since 4.0
*/
void deleteBreakpoint(TaskSet tasks, int bpid) throws PDIException;
/**
* Requests to set enable / disable a given breakpoint of specify process
*
* @param tasks
* target process
* @param bpid
* breakpoint id to be enabled / disabled
* @param enabled
* true if enable
* @throws PDIException
* on failure
* @since 4.0
*/
void setEnabledBreakpoint(TaskSet tasks, int bpid, boolean enabled) throws PDIException;
/**
* Requests to set condition on given breakpoint of specify process
*
* @param tasks
* target process
* @param bpid
* breakpoint id to be set condition
* @param condition
* condition rule
* @throws PDIException
* on failure
* @since 4.0
*/
void setConditionBreakpoint(TaskSet tasks, int bpid, String condition) throws PDIException;
}