From 0b205fd6f8928d731d28c76ecd77b20bdaf142cf Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Fri, 20 Sep 2002 18:42:52 +0000 Subject: [PATCH] Propose setCurrent{Thread,StackFrame} to the API. --- .../org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java | 6 ++++++ .../org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java index 40324a8dc90..404f6165481 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java @@ -53,6 +53,12 @@ public interface ICDITarget extends ICDIObject { */ ICDIThread[] getThreads() throws CDIException; + /** + * Set the current thread on the target. + * @param - ICDThread + */ + void setCurrentThread(ICDIThread current) throws CDIException; + /** * Returns a memory block that starts at the specified memory * address, with the specified length. diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java index 8b37eb35283..9c532deedcf 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIThread.java @@ -28,6 +28,12 @@ public interface ICDIThread extends ICDIObject { */ ICDIStackFrame[] getStackFrames() throws CDIException; + /** + * Set the curretn Stack for the thread. + * @param - ICDIStackFrame + */ + void setCurrentStackFrame(ICDIStackFrame current) throws CDIException; + /** * Returns whether this thread is currently suspended. *