From 482bdca30a8a6a66d2e7c5ecbb354cc79042db48 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Tue, 7 Sep 2004 19:38:49 +0000 Subject: [PATCH] 2004-09-07 Alain Magloire New interfaces to Target. * ICDITarget.java * ICDIBreakpointManagement.java --- debug/org.eclipse.cdt.debug.core/ChangeLog | 5 +++ .../cdi/model/ICDIBreakpointManagement.java | 38 +++++++++++++++++++ .../cdt/debug/core/cdi/model/ICDITarget.java | 19 +++++++++- 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIBreakpointManagement.java diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index d309d376637..698598f4f59 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,8 @@ +2004-09-07 Alain Magloire + New interfaces to Target. + * ICDITarget.java + * ICDIBreakpointManagement.java + 2004-09-03 Mikhail Khodjaiants Made global variables persistent. * CDIDebugModel.java diff --git a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIBreakpointManagement.java b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIBreakpointManagement.java new file mode 100644 index 00000000000..09dce5286c2 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIBreakpointManagement.java @@ -0,0 +1,38 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 QNX Software Systems and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * QNX Software Systems - Initial API and implementation + *******************************************************************************/ + +package org.eclipse.cdt.debug.core.cdi.model; + +import org.eclipse.cdt.debug.core.cdi.CDIException; +import org.eclipse.cdt.debug.core.cdi.ICDICondition; +import org.eclipse.cdt.debug.core.cdi.ICDILocation; + +/** + * Breapoints action on the Target. + * + */ +public interface ICDIBreakpointManagement { + + ICDIBreakpoint[] getBreakpoints() throws CDIException; + + ICDILocationBreakpoint setLocationBreakpoint(int type, ICDILocation location, + ICDICondition condition, String threadId, boolean deferred) throws CDIException; + + ICDIWatchpoint setWatchpoint(int type, int watchType, String expression, + ICDICondition condition) throws CDIException; + + void deleteBreakpoints(ICDIBreakpoint[] breakpoints) throws CDIException; + + void deleteAllBreakpoints() throws CDIException; + +// ICDIExceptionBreakpoint setExceptionBreakpoint(String clazz, boolean stopOnThrow, boolean stopOnCatch) throws CDIException; + +} diff --git a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java index 513c960df56..6be28d88cf5 100644 --- a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java +++ b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java @@ -12,6 +12,7 @@ package org.eclipse.cdt.debug.core.cdi.model; import org.eclipse.cdt.debug.core.cdi.CDIException; +import org.eclipse.cdt.debug.core.cdi.ICDICondition; import org.eclipse.cdt.debug.core.cdi.ICDILocation; import org.eclipse.cdt.debug.core.cdi.ICDISession; @@ -22,7 +23,7 @@ import org.eclipse.cdt.debug.core.cdi.ICDISession; * * @since Jul 8, 2002 */ -public interface ICDITarget extends ICDIObject { +public interface ICDITarget extends ICDIBreakpointManagement, ICDIObject { /** * Returns the debug session this target is contained in. * @@ -212,4 +213,20 @@ public interface ICDITarget extends ICDIObject { * @throws CDIException if this method fails. Reasons include: */ ICDIThread getCurrentThread() throws CDIException; + + /** + * Return a ICDICondition + */ + ICDICondition createCondition(int ignoreCount, String expression); + + /** + * Returns a ICDILocation + */ + ICDILocation createLocation(String file, String function, int line); + + /** + * Returns a ICDILocation + */ + ICDILocation createLocation(long address); + }