1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

Added basic breakpoint support.

Other cosmetic changes.
This commit is contained in:
Pawel Piech 2006-09-01 16:41:08 +00:00
parent 9a2e04c09a
commit 5516763481
2 changed files with 32 additions and 10 deletions

View file

@ -10,18 +10,41 @@
*******************************************************************************/
package org.eclipse.dd.dsf.debug;
import org.eclipse.dd.dsf.concurrent.GetDataDone;
import org.eclipse.dd.dsf.debug.IRunControl.IExecutionDMC;
import org.eclipse.dd.dsf.model.IDataModelContext;
import org.eclipse.dd.dsf.model.IDataModelData;
import org.eclipse.dd.dsf.model.IDataModelEvent;
import org.eclipse.dd.dsf.service.IDsfService;
import org.eclipse.debug.core.model.IBreakpoint;
/**
* Note: This interface is just a place-holder.
* Breakpoint service interface. The breakpoint service tracks platform breakpoint
* objects, and based on those, it manages breakpoints in the debugger back end.
* The purpose of the service model interface is to allow UI clients to display
* breakpoint status in more detail and more dynamically than it it possible with
* just the marker-based breakpoint object.
*/
public interface IBreakpoints extends IDsfService {
public class BreakpointEvent {
public final int fLineNumber;
public BreakpointEvent(int line) {
fLineNumber = line;
}
}
public enum BreakpointStatus { INSTALLED, FAILED_TO_INSTALL, FILTERED_OUT }
public interface IBreakpointDMC extends IDataModelContext<IBreakpointData> {}
public interface IBreakpointData extends IDataModelData {
IBreakpoint getPlatformBreakpoint();
BreakpointStatus getStatus();
}
public interface IBreakpointEvent extends IDataModelEvent<IBreakpointDMC> {}
public interface IBreakpointInstalledEvent extends IBreakpointEvent {}
public interface IBreakpointUninstalledEvent extends IBreakpointEvent {}
public interface IBreakpointInstallFailedEvent extends IBreakpointEvent {}
public interface IBreakpointHitEvent extends IBreakpointEvent {}
public void getAllBreakpoints(IExecutionDMC execDmc, GetDataDone<IBreakpointDMC[]> done);
public void getBreakpoints(IExecutionDMC execDmc, IBreakpoint platformBp, GetDataDone<IBreakpointDMC[]> done);
}

View file

@ -46,14 +46,13 @@ public interface IStack extends IDataModelService {
* expression information. For displaying complete information,
* Expressions service should be used.
*/
public interface IVariableDMC extends IDataModelContext<VariableData> {}
public interface IVariableDMC extends IDataModelContext<IVariableData> {}
/**
* Stack frame variable information.
*/
public interface VariableData extends IDataModelData {
public interface IVariableData extends IDataModelData {
String getName();
String getTypeName();
String getValue();
}