mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
Implement setCurrent{Thread, StackFrame}.
This commit is contained in:
parent
0b205fd6f8
commit
b739b9bde4
2 changed files with 15 additions and 0 deletions
|
@ -72,6 +72,15 @@ public class CTarget implements ICDITarget {
|
||||||
return this;
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public void setCurrentThread(CThread cthread) throws CDIException {
|
public void setCurrentThread(CThread cthread) throws CDIException {
|
||||||
|
|
|
@ -86,6 +86,12 @@ public class CThread extends CObject implements ICDIThread {
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIThread#setCurrentStackFrame(ICDIStackFrame)
|
* @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 {
|
public void setCurrentStackFrame(StackFrame stackframe) throws CDIException {
|
||||||
MISession mi = getCTarget().getCSession().getMISession();
|
MISession mi = getCTarget().getCSession().getMISession();
|
||||||
CommandFactory factory = mi.getCommandFactory();
|
CommandFactory factory = mi.getCommandFactory();
|
||||||
|
|
Loading…
Add table
Reference in a new issue