VisualGDB SDK Documentation

IExpressionEvaluator.EvaluateExpression Method

Asks GDB to evaluate a given C/C++ expression and returns a structured result.

ExpressionValue EvaluateExpression(
   string exp,
   string typeHint
);

Parameters

exp
Specifies the expression to evaluate.
typeHint
Specifies the optional expected C++ type. This parameter is used to detect pointers and convert them to ExpressionValue.Integral with correct flags.

Return Value

If the evaluation fails, the method returns null. Otherwise it returns structured information about the expression represented in an ExpressionValue object.

Remarks

Note that this method cannot be used to evaluate the expression children and get additional expression attributes. If you require more information about the expression, use the CreateExpression() method instead.

See Also

IExpressionEvaluator Interface | VisualGDBExpressions Namespace