1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Implement setCurrent{Thread, StackFrame}.

This commit is contained in:
Alain Magloire 2002-09-20 18:43:10 +00:00
parent 0b205fd6f8
commit b739b9bde4
2 changed files with 15 additions and 0 deletions

View file

@ -71,6 +71,15 @@ public class CTarget implements ICDITarget {
public ICDITarget getTarget() {
return this;
}
/**
* @see org.eclipse.cdt.debug.core.cdi.model.ICDITarget#setCurrentThread(ICDIThread)
*/
public void setCurrentThread(ICDIThread cthread) throws CDIException {
if (cthread instanceof CThread) {
setCurrentThread((CThread)cthread);
}
}
/**
*/

View file

@ -86,6 +86,12 @@ public class CThread extends CObject implements ICDIThread {
/**
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIThread#setCurrentStackFrame(ICDIStackFrame)
*/
public void setCurrentStackFrame(ICDIStackFrame stackframe) throws CDIException {
if (stackframe instanceof StackFrame) {
setCurrentStackFrame((StackFrame)stackframe);
}
}
public void setCurrentStackFrame(StackFrame stackframe) throws CDIException {
MISession mi = getCTarget().getCSession().getMISession();
CommandFactory factory = mi.getCommandFactory();