mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
set a stackframe.
This commit is contained in:
parent
c171ae2fb0
commit
6d87d8839b
1 changed files with 4 additions and 1 deletions
|
@ -50,6 +50,9 @@ public class ExpressionManager extends SessionObject implements ICDIExpressionMa
|
||||||
Expression expression = null;
|
Expression expression = null;
|
||||||
try {
|
try {
|
||||||
Session session = (Session)getSession();
|
Session session = (Session)getSession();
|
||||||
|
ICDITarget currentTarget = session.getCurrentTarget();
|
||||||
|
ICDIThread currentThread = currentTarget.getCurrentThread();
|
||||||
|
StackFrame currentFrame = (StackFrame)currentThread.getCurrentStackFrame();
|
||||||
MISession mi = session.getMISession();
|
MISession mi = session.getMISession();
|
||||||
CommandFactory factory = mi.getCommandFactory();
|
CommandFactory factory = mi.getCommandFactory();
|
||||||
MIVarCreate var = factory.createMIVarCreate(name);
|
MIVarCreate var = factory.createMIVarCreate(name);
|
||||||
|
@ -58,7 +61,7 @@ public class ExpressionManager extends SessionObject implements ICDIExpressionMa
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
throw new CDIException("No answer");
|
throw new CDIException("No answer");
|
||||||
}
|
}
|
||||||
VariableObject varObj = new VariableObject(name, null, 0, 0);
|
VariableObject varObj = new VariableObject(name, currentFrame, 0, 0);
|
||||||
expression = new Expression(varObj, info.getMIVar());
|
expression = new Expression(varObj, info.getMIVar());
|
||||||
addExpression(expression);
|
addExpression(expression);
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue