1
0
Fork 0
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:
Alain Magloire 2003-01-27 04:03:21 +00:00
parent c171ae2fb0
commit 6d87d8839b

View file

@ -50,6 +50,9 @@ public class ExpressionManager extends SessionObject implements ICDIExpressionMa
Expression expression = null;
try {
Session session = (Session)getSession();
ICDITarget currentTarget = session.getCurrentTarget();
ICDIThread currentThread = currentTarget.getCurrentThread();
StackFrame currentFrame = (StackFrame)currentThread.getCurrentStackFrame();
MISession mi = session.getMISession();
CommandFactory factory = mi.getCommandFactory();
MIVarCreate var = factory.createMIVarCreate(name);
@ -58,7 +61,7 @@ public class ExpressionManager extends SessionObject implements ICDIExpressionMa
if (info == null) {
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());
addExpression(expression);
} catch (MIException e) {